Implements an INumerator based on a numerator table.
Default constructor
public Void IntegerNumerator()
Database connection interface.
public IDbAccess DataAccessAPI { get; set; }
A database transaction is required for this numerator.
public Boolean RequiresTransaction { get; }
The integer type to be returned.
public String ReturnType { get; set; }
Indicates whether the first value should be one.
public Boolean StartFromOne { get; set; }
Computes the next value for the given object.
public Object NextVal(model)
Name | Type | Summary |
---|---|---|
model | IDataModel |
Type | Summary |
---|---|
ArgumentNullException | Thrown when model is null. |
MissingRequiredPropertyException | Thrown when a required property was not properly initialized. |
TransactionRequiredException | Thrown when the current connection is not in a transaction. |
MissingPartitionKeyPropertyException | Thrown when model does not has a partition key data property. |
MissingPartitionKeyException | Thrown when model does not has it's partition key data property set. |
InvalidOperationException | Thrown when the partition key cannot be converted into an Int32 value. |
In this document