次の方法で共有


DbExpressionBuilder.OfType(DbExpression, TypeUsage) メソッド

定義

指定した型と一致する指定した入力セットの要素で構成されるセットを生成する新しい DbOfTypeExpression を作成します。

public static System.Data.Entity.Core.Common.CommandTrees.DbOfTypeExpression OfType (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument, System.Data.Entity.Core.Metadata.Edm.TypeUsage type);
static member OfType : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Metadata.Edm.TypeUsage -> System.Data.Entity.Core.Common.CommandTrees.DbOfTypeExpression
<Extension()>
Public Function OfType (argument As DbExpression, type As TypeUsage) As DbOfTypeExpression

パラメーター

argument
DbExpression

入力セットを指定する DbExpression

type
TypeUsage

入力セットの要素のうち結果のセットに含める要素の型メタデータ。

戻り値

指定した set 引数と型を持つ新しい DbOfTypeExpression と、 の OfType ExpressionKind。

例外

引数または型が null です。

引数にコレクションの結果の型がない場合、または型がコレクションの結果型の引数の要素型と同じ型階層の型ではありません。

適用対象