Class SqlQueryBuilder
- Namespace
- Cuemon.Data.SqlClient
- Assembly
- Cuemon.Data.SqlClient.dll
A Microsoft SQL implementation of the QueryBuilder class.
public class SqlQueryBuilder : QueryBuilder
- Inheritance
-
SqlQueryBuilder
- Inherited Members
Constructors
SqlQueryBuilder()
Initializes a new instance of the SqlQueryBuilder class.
public SqlQueryBuilder()
SqlQueryBuilder(String, IDictionary<String, String>)
Initializes a new instance of the SqlQueryBuilder class.
public SqlQueryBuilder(string tableName, IDictionary<string, string> keyColumns)
Parameters
tableName
StringThe name of the table or view.
keyColumns
IDictionary<String, String>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.
public SqlQueryBuilder(string tableName, IDictionary<string, string> keyColumns, IDictionary<string, string> columns)
Parameters
tableName
StringThe name of the table or view.
keyColumns
IDictionary<String, String>The key columns to be used in this SqlQueryBuilder instance.
columns
IDictionary<String, String>The none-key columns to be used in this SqlQueryBuilder instance.
Methods
GetQuery(QueryType, String)
Create and returns the query from the specified QueryType.
public override string GetQuery(QueryType queryType, string tableName)
Parameters
queryType
QueryTypeType of the query to create.
tableName
StringThe name of the table or view. Overrides the class wide tableName.
Returns
- String
The result of the builder as a T-SQL query.