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

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


DbExpressionBuilder.GetEntityRef(DbExpression) Method

Definition

Creates a new DbEntityRefExpression that retrieves the ref of the specified entity in structural form.

C#
public static System.Data.Common.CommandTrees.DbEntityRefExpression GetEntityRef(this System.Data.Common.CommandTrees.DbExpression argument);

Parameters

argument
DbExpression

The expression that provides the entity. This expression must have an entity result type.

Returns

A new DbEntityRefExpression that retrieves a reference to the specified entity.

Exceptions

argument is null.

argument does not have an entity result type.

Applies to

Продукт Версии
.NET Framework 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