DbExpressionBuilder.GetEntityRef(DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří nový DbEntityRefExpression , který načte odkaz zadané entity ve strukturální podobě.
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
Parametry
- argument
- DbExpression
Výraz, který poskytuje entitu. Tento výraz musí mít typ výsledku entity.
Návraty
Nový DbEntityRefExpression, který načte odkaz na zadanou entitu.
Výjimky
argument má hodnotu null.
argument nemá typ výsledku entity.