28 lines
654 B
C#
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; }
|
|
}
|
|
}
|