30 lines
620 B
C#
30 lines
620 B
C#
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<Salon>();
|
|
}
|
|
|
|
[Key]
|
|
public int id { get; set; }
|
|
[Required]
|
|
[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; }
|
|
|
|
}
|
|
}
|