Initial
This commit is contained in:
15
StandManager.Domain/Entita/Base/EntitaBase.cs
Normal file
15
StandManager.Domain/Entita/Base/EntitaBase.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using OAService.Domain.Entita;
|
||||
|
||||
namespace StandManager.Domain.Entita.Base;
|
||||
|
||||
public class EntitaBase : BaseEntity
|
||||
{
|
||||
[ForeignKey(nameof(UtenteCreazione))]
|
||||
public override Guid? IdUtenteCreazione { get; set; }
|
||||
public virtual Utente? UtenteCreazione { get; set; }
|
||||
|
||||
[ForeignKey(nameof(UtenteModifica))]
|
||||
public override Guid? IdUtenteModifica { get; set; }
|
||||
public virtual Utente? UtenteModifica { get; set; }
|
||||
}
|
||||
16
StandManager.Domain/Entita/Utente.cs
Normal file
16
StandManager.Domain/Entita/Utente.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using StandManager.Domain.Entita.Base;
|
||||
|
||||
namespace StandManager.Domain.Entita;
|
||||
|
||||
public class Utente : EntitaBase
|
||||
{
|
||||
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 override string ToString()
|
||||
{
|
||||
return $"{Nome} {Cognome}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user