IntegerNumerator

Implements an INumerator based on a numerator table.

Namespace:
Inetdev.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object
Implements:
Inetdev.Data.INumerator

Constructors

IntegerNumerator

Default constructor

Signature:
public Void IntegerNumerator()

Properties

DataAccessAPI

Database connection interface.

Signature:
public IDbAccess DataAccessAPI { get; set; }

RequiresTransaction

A database transaction is required for this numerator.

Signature:
public Boolean RequiresTransaction { get; }

ReturnType

The integer type to be returned.

Signature:
public String ReturnType { get; set; }

StartFromOne

Indicates whether the first value should be one.

Signature:
public Boolean StartFromOne { get; set; }

Methods

NextVal

Computes the next value for the given object.

Signature:
public Object NextVal(model)
Parameters
Name Type Summary
model IDataModel
Exceptions
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.