güncelleme

This commit is contained in:
2025-08-11 11:22:31 +03:00
parent 5616230e67
commit 5c7bb2c399
10 changed files with 599 additions and 55 deletions

View File

@@ -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; }
}
}