IdentitySequence
Overview
Instances of the IdentitySequence class are used by RemoteTable to represent AutoInc (also called Identity or Sequence) fields. Its values are used by DABindingList or LinqDataAdapter to retrieve values of AutoInc fields when a new data row is inserted.
Note: Identity values represented by this class always start from 0. The next sequence value equals the previous value minus 1.
Location
- Reference: RemObjects.DataAbstract.dll
- Namespace: RemObjects.DataAbstract.Linq
Properties
CurrentValue
Current sequence value.
Note: Retrieving this value is thread-safe.
property CurrentValue: Int64 read;
Int64 CurrentValue { get; }
ReadOnly Property CurrentValue() As Int64
Instance Methods
constructor
Creates a new instance of this class.
constructor
IdentitySequence()
Sub New()
GetNextValue
Gets the next sequence value. Note that it equals the previous sequence value and does not correspond with the value of the AutoInc generator in the underlying database.
Note: This method is thread-safe.
method GetNextValue: Int64
Int64 GetNextValue()
Function GetNextValue() As Int64
- DABindingList
- LinqDataAdapter