il, ilce tablosu eklendi.
This commit is contained in:
29
Models/Ilce.cs
Normal file
29
Models/Ilce.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user