güncelleme
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DugunSalonu.Models
|
||||
{
|
||||
internal class Ilce
|
||||
[Table("ilce")]
|
||||
public class Ilce
|
||||
{
|
||||
public Ilce()
|
||||
{
|
||||
il = new HashSet<Salon>();
|
||||
}
|
||||
|
||||
[Key]
|
||||
public int id { get; set; }
|
||||
@@ -20,10 +18,10 @@ namespace DugunSalonu.Models
|
||||
[MaxLength(50)]
|
||||
public required string adi { get; set; }
|
||||
[Required]
|
||||
public required int ilid { get; set; }
|
||||
ICollection<Salon>? il { get; set; }
|
||||
|
||||
ICollection<Salon>? ilce { get; set; }
|
||||
|
||||
[Column("ilid")]
|
||||
public required int ILid { get; set; }
|
||||
Salon? il { get; set; }
|
||||
ICollection<Salon>? salon { get; set; }
|
||||
public Il? Il { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user