Files
DugunSalonu/Models/Kullanici.cs
2025-08-08 12:31:51 +03:00

38 lines
1018 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
{
internal class Kullanici
{
[Key]
public int Id { get; set; }
[MaxLength(50), MinLength(5)]
[Required]
public required string KullaniciAdi { get; set; }
[Required]
[MaxLength(50)]
public required string Adi { get; set; }
[Required]
[MaxLength(50)]
public required string Soyadi { get; set; }
public string AdiSoyadi { get { return $"{Adi} {Soyadi}"; } }
[Required]
public required string Parola { get; set; }
[MaxLength(50)]
public string? Eposta { get; set; }
[MaxLength(10), MinLength(10)]
public string? CepTel { get; set; }
public bool Aktif { get; set; }
public bool Admin { get; set; }
}
}