DbExpression.Accept Method

 

Namespace:   System.Data.Entity.Core.Common.CommandTrees
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodAccept(DbExpressionVisitor)

Implements the visitor pattern interface method for expression visitors that do not produce a result value.

System_CAPS_pubmethodAccept<TResultType>(DbExpressionVisitor<TResultType>)

Implements the visitor pattern interface method for expression visitors that produce a result value of a specific type.


DbExpression.Accept Method (DbExpressionVisitor)

Implements the visitor pattern interface method for expression visitors that do not produce a result value.

public abstract void Accept(
	DbExpressionVisitor visitor
)

Parameters

visitor
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor

An instance of DbExpressionVisitor.

Exception Condition
ArgumentNullException

visitor is null.


DbExpression.Accept<TResultType> Method (DbExpressionVisitor<TResultType>)

Implements the visitor pattern interface method for expression visitors that produce a result value of a specific type.

public abstract TResultType Accept<TResultType>(
	DbExpressionVisitor<TResultType> visitor
)

Parameters

visitor
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpressionVisitor<TResultType>

An instance of a typed DbExpressionVisitor that produces a result value of type TResultType.

Return Value

Type: TResultType

An instance of TResultType.

Type Parameters

TResultType

The type of the result produced by visitor.

Exception Condition
ArgumentNullException

visitor is null.