/
AppUserRole.cs
45 lines (40 loc) · 1.01 KB
/
AppUserRole.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using InfinniPlatform.DocumentStorage;
namespace InfinniPlatform.Auth
{
/// <summary>
/// Application user role representation.
/// </summary>
public class AppUserRole : Document
{
/// <summary>
/// Initializes a new instance of <see cref="AppUserRole" />.
/// </summary>
public AppUserRole(string roleName)
{
Name = roleName;
}
/// <summary>
/// Role id.
/// </summary>
public string Id
{
get => _id?.ToString();
set => _id = value;
}
/// <summary>
/// Role name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Role name normalized for search.
/// </summary>
public string NormalizedName { get; set; }
/// <summary>
/// Return string representation of user.
/// </summary>
public override string ToString()
{
return Name;
}
}
}