BaseCmdBuilder

BaseCmdBuilder implements basic functionality for command building based on Statement objects.

Namespace:
KpokPatagon.Data.Query
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes
Implements:
KpokPatagon.Data.Query.ICmdBuilder, KpokPatagon.Data.Query.ICmdBuilder

Constructors

BaseCmdBuilder

Initializes a new instance of BaseCmdBuilder.

Signature:
public Void BaseCmdBuilder(commandBuilder)
Parameters
Name Type Summary
commandBuilder IDbCmdBuilder

Events

Type Name Summary
AddingSelectColumnEventHandler AddingSelectColumn Raised when a column is being added to a SELECT command.

Properties

CommandBuilder

Gets or sets the IDbCmdBuilder that handles the building of the SQL command.

Signature:
public IDbCmdBuilder CommandBuilder { get; set; }

Methods

BuildCommand

Builds and returns the IDbCommand to execute.

Signature:
public IDbCommand BuildCommand(statement)
Returns

The IDbCommand to excecute against the database engine.

Parameters
Name Type Summary
statement TStatement The statement to build the command from.

BuildCommandText

Builds the command text for the SQL commnad.

Signature:
public String BuildCommandText(statement, command)
Returns

The command text to execute against the database engine.

Parameters
Name Type Summary
statement TStatement The statement to build the command from.
command IDbCommand The command beeing built to add parameters to (optional).

OnAddingSelectColumn

Helps on lauching the AddingSelectColumn event.

Signature:
protected Void OnAddingSelectColumn(sender, e)
Parameters
Name Type Summary
sender Object A reference to the object raising the event.
e AddingSelectColumnEventArgs Information related to the AddingSelectColumnEventHandler event.