Partager via


LiftableConstantProcessor.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 virtual System.Linq.Expressions.Expression InlineConstants (System.Linq.Expressions.Expression expression, bool supportsPrecompiledQuery);
abstract member InlineConstants : System.Linq.Expressions.Expression * bool -> System.Linq.Expressions.Expression
override this.InlineConstants : System.Linq.Expressions.Expression * bool -> System.Linq.Expressions.Expression
Public Overridable Function InlineConstants (expression As Expression, supportsPrecompiledQuery As Boolean) As Expression

Parameters

expression
Expression

An expression containing LiftableConstantExpression nodes.

supportsPrecompiledQuery
Boolean

A value indicating whether the provider supports precompiled queries.

Returns

An expression tree containing ConstantExpression nodes instead of LiftableConstantExpression nodes.

Implements

Remarks

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

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Applies to