last ...
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using xModels.Base;
|
||||
|
||||
namespace xIdentityModels.Dtos
|
||||
{
|
||||
/// <summary>
|
||||
/// a Role Definition Model (mirror of ASP.NET IdentityRole + Weight) ...
|
||||
/// </summary>
|
||||
public class XRoleDefinitionDto : XBaseIntIDEntityDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Unique Normalized Role Name, e.g. chief_clerk ...
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Persian Display Name, e.g. سر دبیر ...
|
||||
/// </summary>
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Role Weight, same as XUserRole enum (user=0 ... admin=10) ...
|
||||
/// </summary>
|
||||
public int Weight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional Parent Role for Inheritance ...
|
||||
/// </summary>
|
||||
public string ParentRoleName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Is Enabled ...
|
||||
/// </summary>
|
||||
public bool IsEnabled { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Seeded from Constants, cannot be removed ...
|
||||
/// </summary>
|
||||
public bool IsSystem { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user