Files
mixtape/zero.Core/Entities/User/UserRole.cs
T

37 lines
883 B
C#
Raw Normal View History

2020-04-03 18:03:36 +02:00
using System.Collections.Generic;
2020-06-24 13:00:50 +02:00
using zero.Core.Attributes;
2020-04-03 18:03:36 +02:00
namespace zero.Core.Entities
{
2020-05-15 14:23:47 +02:00
public class UserRole : ZeroEntity, IUserRole, IZeroDbConventions
2020-04-03 18:03:36 +02:00
{
/// <inheritdoc/>
public string Description { get; set; }
2020-04-03 18:03:36 +02:00
/// <inheritdoc/>
public string Icon { get; set; }
/// <inheritdoc/>
2020-04-14 20:16:04 +02:00
public List<IUserClaim> Claims { get; set; } = new List<IUserClaim>();
2020-04-03 18:03:36 +02:00
}
2020-06-24 13:00:50 +02:00
[Collection("UserRoles")]
public interface IUserRole : IZeroEntity, IAppAwareShareableEntity, IZeroDbConventions
2020-04-03 18:03:36 +02:00
{
/// <summary>
/// Additional description
/// </summary>
string Description { get; set; }
2020-04-03 18:03:36 +02:00
/// <summary>
/// Displayed icon alongside name
/// </summary>
string Icon { get; set; }
/// <summary>
/// The user's claims, for use in claims-based authentication.
/// </summary>
2020-04-14 20:16:04 +02:00
List<IUserClaim> Claims { get; set; }
2020-04-03 18:03:36 +02:00
}
2020-04-08 13:07:15 +02:00
}