다음을 통해 공유


ILiftableConstantProcessor.LiftConstants Method

Definition

Lifts all LiftableConstantExpression nodes, embedding ParameterExpression in their place and exposing the parameter and resolver via LiftedConstants.

public System.Linq.Expressions.Expression LiftConstants (System.Linq.Expressions.Expression expression, System.Linq.Expressions.ParameterExpression contextParameter, System.Collections.Generic.HashSet<string> variableNames);
abstract member LiftConstants : System.Linq.Expressions.Expression * System.Linq.Expressions.ParameterExpression * System.Collections.Generic.HashSet<string> -> System.Linq.Expressions.Expression
Public Function LiftConstants (expression As Expression, contextParameter As ParameterExpression, variableNames As HashSet(Of String)) As Expression

Parameters

expression
Expression

An expression containing LiftableConstantExpression nodes.

contextParameter
ParameterExpression

The ParameterExpression to be embedded in the liftable constant nodes' resolvers, instead of their lambda parameter.

variableNames
HashSet<String>

A set of variables already in use, for uniquification. Any generates variables will be added to this set.

Returns

An expression tree containing ParameterExpression nodes instead of LiftableConstantExpression nodes.

Remarks

Constant lifting is performed in the precompiled query pipeline flow.

Applies to