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://help.lemonedge.com/help/open-architecture/admin/users/roles-view.html for more information

    Inherited Members
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    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.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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    IRole
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.