SequenceAttribute Class
Defines the database sequence (or generator) used to produce new identifier values.
Remarks
Use this attribute together with an Id attribute whose generator is set to TIdGenerator.IdentityOrSequence. If the database does not support sequences, or the generator type does not require one, this attribute is ignored.
The default initial value and increment are both 1.
Syntax
Unit: Aurelius.Mapping.Attributes
SequenceAttribute = class(TCustomAttribute);
Constructors
| Name | Description |
|---|---|
| Create | Overloaded Create(string) Create(string, Integer, Integer) |
Properties
| Name | Description |
|---|---|
| Increment | Gets or sets the increment step of the sequence. |
| InitialValue | Gets or sets the initial value of the sequence. |
| SequenceName | Gets or sets the name of the database sequence or generator. |