EdmFunctions.LongCount(DbExpression) 方法

定義

建立對指定集合叫用標準 'BigCount' 函式的 DbFunctionExpression。 運算式的結果類型為 Edm.Int64。

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

參數

collection
DbExpression

運算式,指定應該計算其計數值的集合。

傳回

會產生計數值的新 DbFunctionExpression。

例外狀況

collectionnull

collection 無效。

適用於