Property | Type | Description | |
---|---|---|---|
Table | string |
Property | Type | Description | |
---|---|---|---|
Driver | DatabaseDriver | ||
Fields | FieldValuePair>.Dictionary | ||
WhereStatement | WhereStatement |
Method | Description | |
---|---|---|
AddWhere ( string field, Comparison @operator, object compareValue ) : WhereClause | ||
AddWhere ( WhereClause Clause ) : void | ||
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 command against the database. The database driver must be set!
|
|
SetDbDriver ( DatabaseDriver Driver ) : void |
Sets the database driver
|
|
SetField ( string Field, object Value ) : void |
Sets a value for the specified field
|
|
SetField ( string Field, object Value, ValueMode Mode ) : void |
Sets a value for the specified field
|
|
SetTable ( string Table ) : void |
Sets the table name to update
|
|
SetWhereOperator ( LogicOperator @Operator ) : void |
Sets the Logic Operator for the WHERE statement
|
|
UpdateQueryBuilder ( DatabaseDriver Driver ) : System |
Creates a new instance of UpdateQueryBuilder with the provided Database Driver.
|
|
UpdateQueryBuilder ( string Table, DatabaseDriver Driver ) : System |
Creates a new instance of UpdateQueryBuilder with the provided Database Driver.
|
Method | Description | |
---|---|---|
BuildQuery ( bool BuildCommand ) : object |
Builds the query string or DbCommand
|
|
GetSign ( ValueMode Mode ) : string |
Returns the sign for the given value mode
|
public AddWhere ( string field, Comparison @operator, object compareValue ) : WhereClause | ||
field | string | |
@operator | Comparison | |
compareValue | object | |
return | WhereClause |
public AddWhere ( WhereClause Clause ) : void | ||
Clause | WhereClause | |
return | void |
public BuildCommand ( ) : |
||
return |
protected BuildQuery ( bool BuildCommand ) : object | ||
BuildCommand | bool | |
return | object |
protected GetSign ( ValueMode Mode ) : string | ||
Mode | ValueMode | |
return | string |
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 new value to update |
return | void |
public SetField ( string Field, object Value, ValueMode Mode ) : void | ||
Field | string | The column or field name |
Value | object | The new value to update |
Mode | ValueMode | Sets how the update value will be applied to the existing field value |
return | void |
public SetTable ( string Table ) : void | ||
Table | string | The name of the table to update |
return | void |
public SetWhereOperator ( LogicOperator @Operator ) : void | ||
@Operator | LogicOperator | |
return | void |
public UpdateQueryBuilder ( DatabaseDriver Driver ) : System | ||
Driver | DatabaseDriver | The DatabaseDriver that will be used to query this SQL statement |
return | System |
public UpdateQueryBuilder ( string Table, DatabaseDriver Driver ) : System | ||
Table | string | The table we are updating |
Driver | DatabaseDriver | The DatabaseDriver that will be used to query this SQL statement |
return | System |