Udostępnij za pośrednictwem


ILiftableConstantProcessor.InlineConstants(Expression, Boolean) Method

Definition

Inlines all liftable constants as simple ConstantExpression nodes in the tree, containing the result of evaluating the liftable constants' resolvers.

public System.Linq.Expressions.Expression InlineConstants (System.Linq.Expressions.Expression expression, bool supportsPrecompiledQuery);
abstract member InlineConstants : System.Linq.Expressions.Expression * bool -> System.Linq.Expressions.Expression
Public Function InlineConstants (expression As Expression, supportsPrecompiledQuery As Boolean) As Expression

Parameters

expression
Expression

An expression containing LiftableConstantExpression nodes.

supportsPrecompiledQuery
Boolean

A value indicating whether precompiled queries are supported by the provider.

Returns

An expression tree containing ConstantExpression nodes instead of LiftableConstantExpression nodes.

Remarks

Liftable constant inlining is performed in the regular, non-precompiled query pipeline flow.

Applies to