Condividi tramite


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.

public class ReplacingExpressionVisitor : System.Linq.Expressions.ExpressionVisitor
type ReplacingExpressionVisitor = class
    inherit ExpressionVisitor
Public Class ReplacingExpressionVisitor
Inherits ExpressionVisitor
Inheritance
ReplacingExpressionVisitor

Remarks

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

Constructors

ReplacingExpressionVisitor(IDictionary<Expression,Expression>)
ReplacingExpressionVisitor(IReadOnlyList<Expression>, IReadOnlyList<Expression>)

Creates a new instance of the ReplacingExpressionVisitor class.

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