MultitenantDataModelCmdBuilder implements an IDataModelCmdBuilder that builds database commands for IDataModel objects.
Default constructor
public Void MultitenantDataModelCmdBuilder()
Builds a delete command for the model.
public IDbCommand BuildDelete(model, timestampKind, expectedTimestamp)
A delete command to be executed.
Name | Type | Summary |
---|---|---|
model | IDataModel | An IDataModel. |
timestampKind | TimestampKind | Timestamp configuration. |
expectedTimestamp | DateTime | The expected timestamp value. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when model is null. |
MissingPartitionKeyPropertyException | Thrown when model does not has a partition key property. |
FieldNotFoundException | Thrown when the Field for the partition key could not be found. |
MissingWhereClauseException | Thrown when the WHERE clause could not be built. |
MissingPartitionKeyException | Thrown when the partition key was not set in model. |
Builds an update command for the model.
public IDbCommand BuildUpdate(model, timestampKind, expectedTimestamp)
An update command to be executed.
Name | Type | Summary |
---|---|---|
model | IDataModel | An IDataModel. |
timestampKind | TimestampKind | Timestamp configuration. |
expectedTimestamp | DateTime | The expected timestamp value. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when model is null. |
MissingPartitionKeyPropertyException | Thrown when model does not has a partition key property. |
FieldNotFoundException | Thrown when the Field for an IDataProperty could not be found. |
MissingWhereClauseException | Thrown when the WHERE clause could not be built. |
MissingPartitionKeyException | Thrown when the partition key was not set in model. |
In this document