using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DugunSalonu.Models { internal class Ilce { public Ilce() { il = new HashSet(); } [Key] public int id { get; set; } [Required] [MaxLength(50)] public required string adi { get; set; } [Required] public required int ilid { get; set; } ICollection? il { get; set; } ICollection? ilce { get; set; } } }