Search Results for

    Show / Hide Table of Contents

    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
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.GetLabel(String)
    IBaseEntity.SetLabel(String, String)
    IBaseEntity.SetSilentLabel(String, String)
    System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    System.ComponentModel.INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(Object)
    ICloneableAsync.CopyFromSource(Object)
    ICanTrackProperties.HasTrackedPropertyChanged(String)
    ICanTrackProperties.OriginalTrackedPropertyValue(String)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(String)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    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

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    IRole
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.