39 lines
1.0 KiB
C#
39 lines
1.0 KiB
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; }
|
|
}
|
|
}
|