ddd
This commit is contained in:
37
Models/Kullanici.cs
Normal file
37
Models/Kullanici.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user