Files
StandManager/StandManager.Domain/Entita/Ruolo.cs
2026-02-06 21:19:25 +01:00

21 lines
508 B
C#

using StandManager.Domain.Entita.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace StandManager.Domain.Entita;
public class Ruolo : EntitaBase
{
public Ruolo()
{
Nome = string.Empty;
}
public string Nome { get; set; }
[InverseProperty(nameof(Utente.Ruolo))]
public List<Utente> Utenti { get; set; }
[InverseProperty(nameof(Permission.Ruolo))]
public virtual List<Permission> Permessi { get; set; }
public virtual bool Default { get; set; }
}