using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Identity; namespace gehGassi.Domain.Roles { /// /// Repräsentiert eine Rolle im System. Wird um vordefinierte Permission-Sets erweitert /// public class ApplicationRole : IdentityRole { /// /// Vordefinierte Permissions als packed string. /// [MaxLength(500)] public string Permissions { get; set; } /// /// Erstellt eine Instanz /// public ApplicationRole() : base() { } /// /// Erstellt eine Instanz /// /// Rolle public ApplicationRole(string role) : base(role) { Permissions = string.Empty; } /// /// Erstellt eine Instanz /// /// Rolle /// Permissions als packed string public ApplicationRole(string role, string permissions) : base(role) { Permissions = permissions; } } }