Files
StandManager/StandManager.Domain/Entita/Utente.cs
Davide Sandrelli 4ddf71f465 - Gestione Iscrizioni in management
- PartitaIVA in Component_Registrazione
- Flag "Da verificare" a DB
2026-02-05 12:32:58 +01:00

39 lines
1.1 KiB
C#

using StandManager.Domain.Entita.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace StandManager.Domain.Entita;
public class Utente : EntitaBase
{
public Utente()
{
DataCreazione = DateTime.Now;
Eliminato = false;
Username = string.Empty;
}
public string Username { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string Nome { get; set; }
public string Cognome { get; set; }
public string? CodiceAgente { get; set; }
[ForeignKey(nameof(Ruolo))]
public Guid? RuoloId { get; set; }
public Ruolo Ruolo { get; set; }
[ForeignKey(nameof(Capoarea))]
public Guid? CapoareaId { get; set; }
public Utente Capoarea { get; set; }
public bool IsCapoarea { get; set; }
[ForeignKey(nameof(ProvinciaIstat))]
public Guid? ProvinciaIstatId { get; set; }
public ProvinciaIstat ProvinciaIstat { get; set; }
public string Info => $"{Nome} {Cognome}";
public override string ToString()
{
return $"{Nome} {Cognome}";
}
}