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
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 |