Search Results for

    Show / Hide Table of Contents

    Interface ILayoutRole

    The system entity for a layout role, which indicates which custom layouts a role can use

    See https://help.lemonedge.com/help/api/ui/layouts/layouts-role-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.Design
    Assembly: LemonEdge.API.dll
    Syntax
    [EntityDefinition(EntityID.LayoutRoles, "dbo.LT_LayoutRoles", "LayoutRole", IsStandingDataEntity = true, CustomToString = true)]
    [DefaultEntityIcon(ImageType.Layouts)]
    public interface ILayoutRole : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    IsDefault

    Indicates that this layout should always be used by this role when viewing that type of data for the layout.

    A Role can multiple layouts all designed to show the same data type.Only one can be the default and the rest can be customised to be specifically used when required.

    Declaration
    [EntityProperty(SQLType.Bit, false, "0")]
    bool IsDefault { get; set; }
    Property Value
    Type Description
    bool

    LayoutID

    [Key] Links to ILayout. The Layout this Role will have access to.

    This view is hidden/disabled when viewed from a Layout itself, and visible/editable when viewed from a Role.

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityKeyProperty]
    [EntityRelationship(EntityID.Layouts, "ID", SingleJoinType.One, "Layout", "Role Layouts", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = true)]
    [RequiredNoDefaultIDValidation]
    Guid LayoutID { get; set; }
    Property Value
    Type Description
    Guid

    RoleID

    [Key] Links to IRole. The Role that will have access to this Layout.

    This view is hidden/disabled when viewed from a Role itself, and visible/editable when viewed from a Layout.

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityKeyProperty]
    [EntityRelationship(EntityID.Roles, "ID", SingleJoinType.One, "Role", "Layout Roles", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false, InheritPermissions = true)]
    [RequiredNoDefaultIDValidation]
    Guid RoleID { 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

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