Class IncrementalIdGenerator
Identifier generator that automatically increments the identifier by 1.
public class IncrementalIdGenerator : IdGenerator
- Inheritance
-
IncrementalIdGenerator
- Derived
- Inherited Members
- Extension Methods
Constructors
IncrementalIdGenerator()
Initializes a new instance of the IncrementalIdGenerator class.
public IncrementalIdGenerator()
Properties
Current
Gets or sets the current identifier.
public long Current { get; set; }
Property Value
Methods
GetNextId()
Gets the next identifier by incrementing the current value.
public override long GetNextId()
Returns
- long
The next identifier.