英語で読む

次の方法で共有


ReplacingExpressionVisitor Class

Definition

An expression visitor that replaces one expression with another in given expression tree.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

C#
public class ReplacingExpressionVisitor : System.Linq.Expressions.ExpressionVisitor
Inheritance
ReplacingExpressionVisitor

Remarks

See Implementation of database providers and extensions and How EF Core queries work for more information and examples.

Constructors

Methods

Replace(Expression, Expression, Expression)

Replaces one expression with another in given expression tree.

Replace(IReadOnlyList<Expression>, IReadOnlyList<Expression>, Expression)

Replaces one expression with another in given expression tree.

Visit(Expression)

Dispatches the expression to one of the more specialized visit methods in this class.

VisitMember(MemberExpression)

Visits the children of the MemberExpression.

VisitMethodCall(MethodCallExpression)

Visits the children of the MethodCallExpression.

Applies to

製品 バージョン
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0