43 lines
980 B
C#
43 lines
980 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DugunSalonu.Models
|
|
{
|
|
public class Salon
|
|
{
|
|
[Key]
|
|
public int id { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(150)]
|
|
[MinLength(5)]
|
|
public required string adi { get; set; }
|
|
|
|
[MaxLength(250)]
|
|
public string? adres { get; set; }
|
|
public int? ilid { get; set; }
|
|
public int? ilceid { get; set; }
|
|
|
|
[Required]
|
|
public required string eposta { get; set; }
|
|
public string? vergidairesi { get; set; }
|
|
public string? verginumarasi { get; set; }
|
|
|
|
|
|
public string? telefon { get; set; }
|
|
[Required]
|
|
[MaxLength(10), MinLength(10)]
|
|
public required string CepTel { get; set; }
|
|
public string? webadres { get; set; }
|
|
|
|
public Il? il { get; set; }
|
|
|
|
|
|
|
|
}
|
|
}
|