Class CustomListItem
Inheritance
CustomListItem
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
[MultipleUnique(new string[] { "Name", "CustomListID" })]
[DatabaseClassValidation(typeof(CustomListItemValidation), "ValidateListItem")]
public class CustomListItem : BaseEntity, ICustomListItem, ISetCopier, IShareAcrossAccounts, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<ICustomListItem>
Constructors
CustomListItem()
Declaration
Properties
CustomListID
[Key] Links to ICustomGrid. The parent custom grid this entity is a member of
Declaration
[RequiredNoDefaultIDValidation]
public Guid CustomListID { get; set; }
Property Value
CustomListID_Label
Declaration
public string CustomListID_Label { get; set; }
Property Value
CustomListID_Label_Silent
Declaration
[NotMapped]
public string CustomListID_Label_Silent { get; set; }
Property Value
Description
A user friendly description of this custom list and its values
Declaration
[StringLength(2000)]
public string Description { get; set; }
Property Value
EnumCode
Declaration
[StringLength(500)]
public string EnumCode { get; set; }
Property Value
EnumValue
Declaration
public 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
public short Index { get; set; }
Property Value
IsShared
Indicates this record is a shared record.
Only the root account can edit items that are shared records
Declaration
public bool IsShared { get; set; }
Property Value
Name
[Key] A unique friendly name for this custom list item.
Declaration
[Required]
[DatabasePropertyValidation("true", "await LemonEdge.API.Entities.Design.CustomListItemValidation.IsListNameValid(MyItem, Data)", "The PropertyName is invalid.")]
[StringLength(500)]
public string Name { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(ICustomListItem)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(ICustomListItem source)
Parameters
Type |
Name |
Description |
ICustomListItem |
source |
The source object to copy all values from.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods