Files
DugunSalonu/Models/Ilce.cs
2025-08-11 11:22:31 +03:00

28 lines
654 B
C#

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
{
[Table("ilce")]
public class Ilce
{
[Key]
public int id { get; set; }
[Required]
[MaxLength(50)]
public required string adi { get; set; }
[Required]
[Column("ilid")]
public required int ILid { get; set; }
Salon? il { get; set; }
ICollection<Salon>? salon { get; set; }
public Il? Il { get; set; }
}
}