il, ilce tablosu eklendi.

This commit is contained in:
2025-08-09 23:14:48 +03:00
parent 4796beac49
commit 2ab4d14a58
12 changed files with 773 additions and 126 deletions

29
Models/Ilce.cs Normal file
View 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; }
}
}