IDataModelCmdBuilder

Allows the implementation of database command builders that are based of data model objects.

Namespace:
Inetdev.Data
Type:
Interface
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes

Properties

CommandBuilder

Get or set the command builder object.

Signature:
public IDbCmdBuilder CommandBuilder { get; set; }

StatementPreparer

Get or set the statement preparer object.

Signature:
public IDbStatementPreparer StatementPreparer { get; set; }

Methods

BuildDelete

Builds a SQL delete command.

Signature:
public IDbCommand BuildDelete(model, timestampKind, expectedTimestamp)
Returns

SQL delete command.

Parameters
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.

BuildInsert

Builds a SQL insert command.

Signature:
public IDbCommand BuildInsert(model)
Returns

SQL insert Command.

Parameters
Name Type Summary
model IDataModel Data model object.

BuildUpdate

Builds a SQL update command.

Signature:
public IDbCommand BuildUpdate(model, timestampKind, expectedTimestamp)
Returns

SQL update command.

Parameters
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.