TableNumerator

TableNumerator implements a data model for a numerator table used to sequentialy numerate objects.

Namespace:
Inetdev.Multitenancy
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.DataModel
Implements:
System.IEquatable{Inetdev.Multitenancy.TableNumerator}

Constructors

TableNumerator

Default constructor

Signature:
public Void TableNumerator()

TableNumerator

Initializes a new instance of TableNumerator.

Signature:
public Void TableNumerator(tenantId, id)
Parameters
Name Type Summary
tenantId Int32 Tenant Id.
id String Numerator Id.

Properties

EnforceModelValidation

Gets whether the model validation must be enforced.

Signature:
public Boolean EnforceModelValidation { get; }

Id

The identification of this TableNumerator.

Signature:
public String Id { get; set; }

LastValue

Last value used from this numerator.

Signature:
public Int64 LastValue { get; set; }

TenantId

Tenant Id.

Signature:
public Int32 TenantId { get; set; }

Methods

Equals

Checks whether other is equal to this object.

Signature:
public Boolean Equals(other)
Parameters
Name Type Summary
other TableNumerator The object to check equality to.

Equals

Checks whether obj is equal to this object.

Signature:
public Boolean Equals(obj)
Parameters
Name Type Summary
obj Object The object to compare this object to.

GetHashCode

Serves as the default hash function. Not required, implemented to avoid compiler warning.

Signature:
public Int32 GetHashCode()

Load

Initializes a new instance of TableNumerator and loads it data from the underlaying repository.

Signature:
public TableNumerator Load(partitionKey, id)
Parameters
Name Type Summary
partitionKey Int32 Tenant Id.
id String Numerator Id.

LoadAsync

Initializes a new instance of TableNumerator and loads it data from the underlaying repository asyncronously.

Signature:
public Task<TableNumerator> LoadAsync(partitionKey, id)
Parameters
Name Type Summary
partitionKey Int32 Tenant Id.
id String Numerator Id.