Interface ICustomListItem
The system entity for custom list items, which are a collection of values that can be selected by the user against
a Custom List
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.CustomListItem, "dbo.LT_CustomListItems", "CustomListItem", LabelColumn = "Name", IsStandingDataEntity = true)]
[DefaultEntityIcon(ImageType.ChecklistComplete)]
[MultipleUnique(new string[] { "Name", "CustomListID" })]
[EntityIndex(Name = "ListItems", ColumnNames = new string[] { "CustomListID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
[DatabaseClassValidation(typeof(CustomListItemValidation), "ValidateListItem")]
public interface ICustomListItem : ISetCopier, IShareAcrossAccounts, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
CustomListID
[Key] Links to ICustomGrid. The parent custom grid this entity is a member of
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.CustomList, "ID", SingleJoinType.One, "Custom List", "List Items", DeleteWithRelationship = true, PartOfParentSet = true, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid CustomListID { get; set; }
Property Value
Description
A user friendly description of this custom list and its values
Declaration
[EntityProperty(SQLType.NVarChar, 2000, true)]
[EntityDescription("A user friendly description of this custom list item.")]
string Description { get; set; }
Property Value
EnumCode
Declaration
[EntityProperty(SQLType.NVarChar, 500, true)]
[EntityDescription("The unique code of this Custom List Item that can be returned from the formula engine.")]
string EnumCode { get; set; }
Property Value
EnumValue
Declaration
[EntityProperty(SQLType.Decimal, 16, 2, true)]
[EntityDescription("The unique value of this Custom List Item that can be returned from the formula engine.")]
decimal? EnumValue { get; set; }
Property Value
Index
Holds the index of this custom list item within the custom list. Once used this should not be changed as it is how
values are stored for this enum.
Declaration
[EntityProperty(SQLType.SmallInt, false, "0")]
[EntityDescription("Holds the index of this custom list item within the custom list. Once used this should not be changed as it is how values are stored for this enum.")]
[EntityKeyProperty]
[DBTrackChanges]
short Index { get; set; }
Property Value
Name
[Key] A unique friendly name for this custom list item.
Declaration
[EntityProperty(SQLType.NVarChar, 500, false)]
[EntityDescription("The unique name of this Custom List Item.")]
[Required]
[DBTrackChanges]
[DatabasePropertyValidation("true", "await LemonEdge.API.Entities.Design.CustomListItemValidation.IsListNameValid(MyItem, Data)", "The PropertyName is invalid.")]
string Name { get; set; }
Property Value
Extension Methods
See Also