Table of Contents

Interface ISqlBuilderRenderContext

Namespace
LinqToDB.Internal.SqlProvider
Assembly
linq2db.dll

The narrow render-time context the SQL builder needs from the query pipeline: the EvaluationContext for evaluating expressions against this run's parameter values, and AddParameter(SqlParameter) to register the parameters the rendered command references. The builder depends only on this — not on the full OptimizationContext, which also drives the optimize/convert pipeline the builder no longer touches.

public interface ISqlBuilderRenderContext
Extension Methods

Properties

EvaluationContext

Evaluation context carrying this run's parameter values, used for render-time expression evaluation.

EvaluationContext EvaluationContext { get; }

Property Value

EvaluationContext

Methods

AddParameter(SqlParameter)

Registers parameter with the command's parameter set and returns the parameter to render (possibly a deduplicated/renamed instance).

SqlParameter AddParameter(SqlParameter parameter)

Parameters

parameter SqlParameter

Returns

SqlParameter

NormalizeParameterName(string?)

Reserves name in this run's parameter-name bucket and returns the resulting collision-free name. Used by a builder to pre-register names (e.g. CTE variable names) so generated parameter names can't collide with them.

string? NormalizeParameterName(string? name)

Parameters

name string

Returns

string