Class EntitySequenceAttribute
Indicates this property holds the sequence order of the item within the set of items in the collection.
This is automatically used by the UI in grids to have move up/down buttons and take care of updating all properties as items are moved through a sequence
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class EntitySequenceAttribute : Attribute
Constructors
EntitySequenceAttribute()
Indicates this property holds a sequence number representing the unique position of this item within a collection of the same items
Declaration
public EntitySequenceAttribute()
EntitySequenceAttribute(short)
Indicates this property holds a sequence number representing the unique position of this item within a collection of the same items
Declaration
public EntitySequenceAttribute(short start)
Parameters
Type | Name | Description |
---|---|---|
short | start | Specifies that a new item within no collection should start from the specified sequence number. By default this is 0. |
Properties
Start
The start number to start any new sequence with. 0 is the default, but you could specify 1 if this is visible to the user.
Declaration
public short Start { get; }
Property Value
Type | Description |
---|---|
short |