Interface ILayoutRole
The system entity for a layout role, which indicates which custom layouts a role can use
See https://web.lemonedge.com/help/layout-roles-view/ for more information
Inherited Members
Namespace: LemonEdge.API.Entities
Assembly: API.dll
Syntax
[EntityDefinition(EntityID.LayoutRoles, "dbo.LT_LayoutRoles", "LayoutRole", IsStandingDataEntity = 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 |
---|---|
System.Boolean |
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)]
[EntityRelationship(EntityID.Layouts, "ID", SingleJoinType.One, "Roles", "Layouts", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = true)]
Guid LayoutID { get; set; }
Property Value
Type | Description |
---|---|
System.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)]
[EntityRelationship(EntityID.Roles, "ID", SingleJoinType.One, "Layouts", "Roles", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false, InheritPermissions = true)]
Guid RoleID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |