Свойство | Type | Description | |
---|---|---|---|
Table | string |
Свойство | Type | Description | |
---|---|---|---|
Driver | DatabaseDriver | ||
Fields | FieldValuePair>.Dictionary | ||
WhereStatement | WhereStatement |
Méthode | 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.
|
Méthode | 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 | |
Résultat | WhereClause |
public AddWhere ( WhereClause Clause ) : void | ||
Clause | WhereClause | |
Résultat | void |
public BuildCommand ( ) : |
||
Résultat |
protected BuildQuery ( bool BuildCommand ) : object | ||
BuildCommand | bool | |
Résultat | object |
protected GetSign ( ValueMode Mode ) : string | ||
Mode | ValueMode | |
Résultat | string |
public SetDbDriver ( DatabaseDriver Driver ) : void | ||
Driver | DatabaseDriver | |
Résultat | void |
public SetField ( string Field, object Value ) : void | ||
Field | string | The column or field name |
Value | object | The new value to update |
Résultat | 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 |
Résultat | void |
public SetTable ( string Table ) : void | ||
Table | string | The name of the table to update |
Résultat | void |
public SetWhereOperator ( LogicOperator @Operator ) : void | ||
@Operator | LogicOperator | |
Résultat | void |
public UpdateQueryBuilder ( DatabaseDriver Driver ) : System | ||
Driver | DatabaseDriver | The DatabaseDriver that will be used to query this SQL statement |
Résultat | 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 |
Résultat | System |