DbExpressionBuilder.GetEntityRef(DbExpression) Metodo

Definizione

Crea un nuovo DbEntityRefExpression oggetto che recupera il riferimento dell'entità specificata in forma strutturale.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbEntityRefExpression ^ GetEntityRef(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbEntityRefExpression GetEntityRef(this System.Data.Common.CommandTrees.DbExpression argument);
static member GetEntityRef : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbEntityRefExpression
<Extension()>
Public Function GetEntityRef (argument As DbExpression) As DbEntityRefExpression

Parametri

argument
DbExpression

Espressione che fornisce l'entità. Questa espressione deve avere un tipo di risultato di entità.

Valori restituiti

Nuovo DbEntityRefExpression che recupera un riferimento all'entità specificata.

Eccezioni

argument è null.

argument non dispone di un tipo di risultato di entità.

Si applica a