BaseCmdBuilder implements the basic functionality for command builders bases on Statement objects.
Creates a new instance of BaseCmdBuilder.
public Void BaseCmdBuilder(builder, statement, command)
Name | Type | Summary |
---|---|---|
builder | IDbCmdBuilder | The IDbCmdBuilder that is building the command. |
statement | Statement | The Statement with the information of the command to build. |
command | IDbCommand | An IDbCommand where a command is being built. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when builder is null. |
ArgumentNullException | Thrown when statement is null. |
Type | Name | Summary |
---|---|---|
AddingSelectColumnEventHandler | AddingSelectColumn | Raised when a column is being added to a SELECT command. |
Gets or sets the IDbCommand that is being built.
public IDbCommand Command { get; set; }
Gets or sets the IDbCmdBuilder that is managing the building of the SQL command.
public IDbCmdBuilder CommandBuilder { get; set; }
Statement preparer.
protected IDbStatementPreparer StatementPreparer { get; }
Builds and returns the IDbCommand to execute.
public IDbCommand BuildCommand()
The IDbCommand to excecute againt the database engine.
Builds the command text for the SQL commnad being built.
public String BuildCommandText()
The command text to execute againts the database engine.
Clean up!
public Void Dispose()
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. |