Redigera

Dela via


DbExpressionBuilder.GetRefKey(DbExpression) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbRefKeyExpression ^ GetRefKey(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbRefKeyExpression GetRefKey (this System.Data.Common.CommandTrees.DbExpression argument);
static member GetRefKey : System.Data.Common.CommandTrees.DbExpression -> System.Data.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