Прочетете на английски Редактиране

Споделяне чрез


DbEntityRefExpression.Accept Method

Definition

Overloads

Accept(DbExpressionVisitor)

Implements the visitor pattern for expressions that do not produce a result value.

Accept<TResultType>(DbExpressionVisitor<TResultType>)

Implements the visitor pattern for expressions that produce a result value of a specific type.

Accept(DbExpressionVisitor)

Implements the visitor pattern for expressions that do not produce a result value.

C#
public override void Accept(System.Data.Common.CommandTrees.DbExpressionVisitor visitor);

Parameters

visitor
DbExpressionVisitor

An instance of DbExpressionVisitor.

Exceptions

visitor is null.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Accept<TResultType>(DbExpressionVisitor<TResultType>)

Implements the visitor pattern for expressions that produce a result value of a specific type.

C#
public override TResultType Accept<TResultType>(System.Data.Common.CommandTrees.DbExpressionVisitor<TResultType> visitor);

Type Parameters

TResultType

The type of the result produced by visitor.

Parameters

visitor
DbExpressionVisitor<TResultType>

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

Returns

TResultType

A result value of a specific type produced by DbExpressionVisitor.

Exceptions

visitor is null.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1