Property | Type | Description | |
---|---|---|---|
Table | string |
Property | Type | Description | |
---|---|---|---|
Driver | DatabaseDriver | ||
Fields | object>.Dictionary |
Method | Description | |
---|---|---|
BuildCommand ( ) : |
Builds the query string with the current SQL Statement, and returns the DbCommand to be executed. All WHERE paramenters are propery escaped, making this command SQL Injection safe.
|
|
BuildQuery ( ) : string |
Builds the query string with the current SQL Statement, and returns the querystring. This method is NOT Sql Injection safe!
|
|
Execute ( ) : int |
Executes the built SQL statement on the Database connection that was passed in the contructor. All WHERE paramenters are propery escaped, making this command SQL Injection safe.
|
|
InsertQueryBuilder ( DatabaseDriver Driver ) : System |
Creates a new instance of InsertQueryBuilder with the provided Database Driver.
|
|
InsertQueryBuilder ( string Table, DatabaseDriver Driver ) : System |
Creates a new instance of InsertQueryBuilder with the provided Database Driver.
|
|
SetDbDriver ( DatabaseDriver Driver ) : void |
Sets the database driver
|
|
SetField ( string Field, object Value ) : void |
Sets a value for the specified field
|
|
SetTable ( string Table ) : void |
Sets the table name to inesrt into
|
Method | Description | |
---|---|---|
BuildQuery ( bool BuildCommand ) : object |
Builds the query string or DbCommand
|
public BuildCommand ( ) : |
||
return |
protected BuildQuery ( bool BuildCommand ) : object | ||
BuildCommand | bool | |
return | object |
public InsertQueryBuilder ( DatabaseDriver Driver ) : System | ||
Driver | DatabaseDriver | The DatabaseDriver that will be used to query this SQL statement |
return | System |
public InsertQueryBuilder ( string Table, DatabaseDriver Driver ) : System | ||
Table | string | The table we are inserting into |
Driver | DatabaseDriver | The DatabaseDriver that will be used to query this SQL statement |
return | System |
public SetDbDriver ( DatabaseDriver Driver ) : void | ||
Driver | DatabaseDriver | |
return | void |
public SetField ( string Field, object Value ) : void | ||
Field | string | The column or field name |
Value | object | The value to insert |
return | void |
public SetTable ( string Table ) : void | ||
Table | string | The name of the table to insert into |
return | void |