Sdílet prostřednictvím


DbExpressionBuilder.GetRefKey(DbExpression) Metoda

Definice

Vytvoří nový DbRefKeyExpression , který načte hodnoty klíče specifikovaného odkazu ve strukturální podobě.

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

Parametry

argument
DbExpression

Výraz, který poskytuje odkaz. Tento výraz musí mít odkaz Typu s typem prvku Entity.

Návraty

Nový DbRefKeyExpression, který načte hodnoty klíče zadaného odkazu.

Výjimky

argument je null.

argument nemá typ výsledku odkazu.

Platí pro