Class EntityAutoIncrementColumnAttribute
Indicates this property is an integer value that holds a value that should auto-increment by the system only, and is not editable by the user
When a new instance is created this will hold 0, only when the new item is saved the system will transactionally auto-increment its value from the last value.
It will not be changed again by the system, and will not allow user changes either
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class EntityAutoIncrementColumnAttribute : Attribute
Constructors
EntityAutoIncrementColumnAttribute()
Indicates the system will auto-increment the value of this property for new instances as they are saved
Declaration
public EntityAutoIncrementColumnAttribute()
EntityAutoIncrementColumnAttribute(int)
Indicates the system will auto-increment the value of this property for new instances as they are saved, with the
specified start
value
Declaration
public EntityAutoIncrementColumnAttribute(int start)
Parameters
Type | Name | Description |
---|---|---|
int | start | The value the auto-incrementing property will start from |
Properties
Start
The default value the auto-increment property will start from
Declaration
public int Start { get; }
Property Value
Type | Description |
---|---|
int |