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

定義

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

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

パラメーター

argument
DbExpression

入力セットを指定する DbExpression

type
TypeUsage

入力セットの要素のうち結果のセットに含める要素の型メタデータ。この型と完全に一致した要素だけが結果のセットに含まれます。

戻り値

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

例外

引数または型が null です。

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

適用対象