Interface IUserRole
The system entity for a user role, which holds which roles a user is a member of.
See https://web.lemonedge.com/help/user-roles-view/ for more information
Inherited Members
System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Namespace: LemonEdge.API.Entities
Assembly: API.dll
Syntax
[EntityDefinition(EntityID.UserRoles, "dbo.LT_UserRoles", "UserRole", IsStandingDataEntity = 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)]
[EntityRelationship(EntityID.Roles, "ID", SingleJoinType.One, "Roles", "UserRoles", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false, InheritPermissions = true)]
Guid RoleID { get; set; }
Property Value
Type | Description |
---|---|
System.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)]
[EntityRelationship(EntityID.Users, "ID", SingleJoinType.One, "Users", "UserRoles", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false)]
Guid UserID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |