Appearance
SqlRenderContext Class
Definition
Provides context and helper functionality during the rendering of SQL clause operators.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constructors
| Name | Description |
|---|---|
SqlRenderContext(ISqlGenerator generator, ITableInfo tableInfo = null, bool useQuotedIdentifiers = null) | Initializes a new instance of the SqlRenderContext class using the specified SQL generator. |
Properties
| Name | Description |
|---|---|
ParameterIndex | Gets the current parameter index used to generate unique parameter names. |
Parameters | Get a list of Parameters for the current render context |
RootAlias | When set (typically the SELECT root alias while JOINs are present), unqualified |
SqlGenerator | Gets the SQL generator responsible for generating dialect-specific SQL. |
TableInfo | TableInfo information when provided to constructor |
UseQuotedIdentifiers | Gets a value indicating whether identifiers should be quoted in the generated SQL. |
Methods
| Name | Description |
|---|---|
string AddParameter(string baseName, object value, DataValueType type = null) | Generates the next unique parameter name based on the specified base name. |