DbExpressionBuilder.IsOf(DbExpression, TypeUsage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DbIsOfExpression that determines whether the given argument is of the specified type or a subtype.
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
Parameters
- argument
- DbExpression
An expression that specifies the instance.
- type
- TypeUsage
Type metadata that specifies the type that the instance's result type should be compared to.
Returns
A new DbIsOfExpression with the specified instance and type and DbExpressionKind IsOf.
Exceptions
argument or type is null.
type is not in the same type hierarchy as the result type of argument.
Applies to
Entity Framework