Interface IUserRole
The system entity for a user role, which holds which roles a user is a member of.
See https://help.lemonedge.com/help/open-architecture/admin/users/roles-view.html for more information
Inherited Members
Namespace: LemonEdge.API.Entities.Administration
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.UserRoles, "dbo.LT_UserRoles", "UserRole", IsStandingDataEntity = true, CustomToString = true)]
[MultipleUnique(new string[] { "UserID", "RoleID" })]
[DefaultEntityIcon(ImageType.UserRole)]
public interface IUserRole : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
RoleID
[Key] Links to IRole. The Role you want to provide access to the user.
Declaration
[EntityDescription("The Role you want to provide access to the user.")]
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityKeyProperty]
[EntityRelationship(EntityID.Roles, "ID", SingleJoinType.One, "Role", "User Role", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
Guid RoleID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
UserID
[Key] Links to IUser. The User you want to provide with access to the role.
Declaration
[EntityDescription("The User you want to provide with access to the role.")]
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityKeyProperty]
[EntityRelationship(EntityID.Users, "ID", SingleJoinType.One, "User", "Role User", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false)]
[RequiredNoDefaultIDValidation]
Guid UserID { get; set; }
Property Value
Type | Description |
---|---|
Guid |