EdmFunctions.Count(DbExpression) メソッド

定義

指定したコレクションで正規関数 'Count' を呼び出す DbFunctionExpression を作成します。 式の結果型は Edm.Int32 です。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Count(System::Data::Common::CommandTrees::DbExpression ^ collection);
public static System.Data.Common.CommandTrees.DbFunctionExpression Count (this System.Data.Common.CommandTrees.DbExpression collection);
static member Count : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Count (collection As DbExpression) As DbFunctionExpression

パラメーター

collection
DbExpression

カウント値の計算対象のコレクションを指定する式。

戻り値

カウント値を生成する新しい DbFunctionExpression。

例外

collectionnullです。

collection が無効です。

適用対象