Share via


DbExpressionBuilder.GetRefKey(DbExpression) Method

Definition

Creates a new DbRefKeyExpression that retrieves the key values of the specifed reference in structural form.

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

Parameters

argument
DbExpression

The expression that provides the reference. This expression must have a reference Type with an Entity element type.

Returns

A new DbRefKeyExpression that retrieves the key values of the specified reference.

Exceptions

argument is null.

argument does not have a reference result type.

Applies to