DbExpressionBuilder.IsOf(DbExpression, TypeUsage) 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ý DbIsOfExpression , který určuje, zda je daný argument zadaného typu nebo podtypu.
public static System.Data.Entity.Core.Common.CommandTrees.DbIsOfExpression IsOf (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument, System.Data.Entity.Core.Metadata.Edm.TypeUsage type);
static member IsOf : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Metadata.Edm.TypeUsage -> System.Data.Entity.Core.Common.CommandTrees.DbIsOfExpression
<Extension()>
Public Function IsOf (argument As DbExpression, type As TypeUsage) As DbIsOfExpression
Parametry
- argument
- DbExpression
Výraz, který určuje instanci.
- type
- TypeUsage
Zadejte metadata, která určují typ, se kterým by se měl porovnávat typ výsledku instance.
Návraty
Nový DbIsOfExpression se zadanou instancí a typem a DbExpressionKind IsOf.
Výjimky
argument nebo typ je null.
type není ve stejné hierarchii typů jako výsledný typ argumentu.
Platí pro
Entity Framework