IncrementalIdGenerator
Ecng.Common
Identifier generator that automatically increments the identifier by 1.
Наследует: IdGenerator
Конструкторы
IncrementalIdGenerator
public IncrementalIdGenerator()
incrementalIdGenerator = IncrementalIdGenerator()
Initializes a new instance of the IncrementalIdGenerator class.
Свойства
Current
public long Current { get; set; }
value = incrementalIdGenerator.Current
incrementalIdGenerator.Current = value
Gets or sets the current identifier.
Методы
GetNextId
public override long GetNextId()
result = incrementalIdGenerator.GetNextId()
Gets the next identifier by incrementing the current value.
Возвращает: The next identifier.