Skip to content

SqlRenderContext Class ​

Definition ​

Provides context and helper functionality during the rendering of SQL clause operators.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Constructors ​

NameDescription
SqlRenderContext(ISqlGenerator generator, ITableInfo tableInfo = null, bool useQuotedIdentifiers = null)Initializes a new instance of the SqlRenderContext class using the specified SQL generator.

Properties ​

NameDescription
ParameterIndexGets the current parameter index used to generate unique parameter names.
ParametersGet a list of Parameters for the current render context
RootAliasWhen set (typically the SELECT root alias while JOINs are present), unqualified
SqlGeneratorGets the SQL generator responsible for generating dialect-specific SQL.
TableInfoTableInfo information when provided to constructor
UseQuotedIdentifiersGets a value indicating whether identifiers should be quoted in the generated SQL.

Methods ​

NameDescription
string AddParameter(string baseName, object value, DataValueType type = null)Generates the next unique parameter name based on the specified base name.