DbExpressionBuilder.GetEntityRef(DbExpression) Method

Definition

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

public static System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression GetEntityRef (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member GetEntityRef : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression
<Extension()>
Public Function GetEntityRef (argument As DbExpression) As DbEntityRefExpression

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