Class SqlQueryBuilder
A Microsoft SQL implementation of the QueryBuilder class.
Inherited Members
Namespace: Cuemon.Data.SqlClient
Assembly: Cuemon.Data.dll
Syntax
public class SqlQueryBuilder : QueryBuilder
Constructors
| Improve this DocSqlQueryBuilder()
Initializes a new instance of the SqlQueryBuilder class.
Declaration
public SqlQueryBuilder()
SqlQueryBuilder(String, IDictionary<String, String>)
Initializes a new instance of the SqlQueryBuilder class.
Declaration
public SqlQueryBuilder(string tableName, IDictionary<string, string> keyColumns)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableName | The name of the table or view. |
System.Collections.Generic.IDictionary<System.String, System.String> | keyColumns | The key columns to be used in this SqlQueryBuilder instance. |
SqlQueryBuilder(String, IDictionary<String, String>, IDictionary<String, String>)
Initializes a new instance of the SqlQueryBuilder class.
Declaration
public SqlQueryBuilder(string tableName, IDictionary<string, string> keyColumns, IDictionary<string, string> columns)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableName | The name of the table or view. |
System.Collections.Generic.IDictionary<System.String, System.String> | keyColumns | The key columns to be used in this SqlQueryBuilder instance. |
System.Collections.Generic.IDictionary<System.String, System.String> | columns | The none-key columns to be used in this SqlQueryBuilder instance. |
Methods
| Improve this DocGetQuery(QueryType, String)
Create and returns the builded query from the specified QueryType.
Declaration
public override string GetQuery(QueryType queryType, string tableName)
Parameters
Type | Name | Description |
---|---|---|
QueryType | queryType | Type of the query to create. |
System.String | tableName | The name of the table or view. Overrides the class wide tableName. |
Returns
Type | Description |
---|---|
System.String |