Class Role
AppRole contains a list of roles that can be assigned to users.
Inheritance
System.Object
Role
Namespace: LymeTemplateApi.Models
Assembly: LymeTemplateApi.Models.dll
Syntax
public class Role : object
Properties
Description
A description of the role that appears in administrative interfaces.
Declaration
public string? Description { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Id
Primary Key
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
The name of the role. Careful! Changing this name can break things in your app!
Declaration
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Sort
Sort order when viewing a list of roles.
Declaration
public int Sort { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserRoles
EF Navigation Property
Declaration
public IList<UserRole> UserRoles { get; set; }
Property Value
Type | Description |
---|---|
IList<UserRole> |