BaseCmdBuilder implements basic functionality for command building based on Statement objects.
Initializes a new instance of BaseCmdBuilder.
public Void BaseCmdBuilder(commandBuilder)
Name | Type | Summary |
---|---|---|
commandBuilder | IDbCmdBuilder |
Type | Name | Summary |
---|---|---|
AddingSelectColumnEventHandler | AddingSelectColumn | Raised when a column is being added to a SELECT command. |
Gets or sets the IDbCmdBuilder that handles the building of the SQL command.
public IDbCmdBuilder CommandBuilder { get; set; }
Builds and returns the IDbCommand to execute.
public IDbCommand BuildCommand(statement)
The IDbCommand to excecute against the database engine.
Name | Type | Summary |
---|---|---|
statement | TStatement | The statement to build the command from. |
Builds the command text for the SQL commnad.
public String BuildCommandText(statement, command)
The command text to execute against the database engine.
Name | Type | Summary |
---|---|---|
statement | TStatement | The statement to build the command from. |
command | IDbCommand | The command beeing built to add parameters to (optional). |
Helps on lauching the AddingSelectColumn event.
protected Void OnAddingSelectColumn(sender, e)
Name | Type | Summary |
---|---|---|
sender | Object | A reference to the object raising the event. |
e | AddingSelectColumnEventArgs | Information related to the AddingSelectColumnEventHandler event. |