Allows the implementation of database command builders that are based of data model objects.
Get or set the command builder object.
public IDbCmdBuilder CommandBuilder { get; set; }
Get or set the statement preparer object.
public IDbStatementPreparer StatementPreparer { get; set; }
Builds a SQL delete command.
public IDbCommand BuildDelete(model, timestampKind, expectedTimestamp)
SQL delete command.
Name | Type | Summary |
---|---|---|
model | IDataModel | Data model object. |
timestampKind | TimestampKind | Specifies the kind of timestamp field that should be included. |
expectedTimestamp | DateTime | The timestamp value that is expected to be on the database. |
Builds a SQL insert command.
public IDbCommand BuildInsert(model)
SQL insert Command.
Name | Type | Summary |
---|---|---|
model | IDataModel | Data model object. |
Builds a SQL update command.
public IDbCommand BuildUpdate(model, timestampKind, expectedTimestamp)
SQL update command.
Name | Type | Summary |
---|---|---|
model | IDataModel | Data model object. |
timestampKind | TimestampKind | Specifies the kind of timestamp field that should be included. |
expectedTimestamp | DateTime | The timestamp value that is expected to be on the database. |
In this document