EdmFunctions.LongCount(DbExpression) 方法

定义

创建一个 DbFunctionExpression 在指定集合上调用规范“BigCount”函数的函数。 表达式的结果类型为 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 无效。

适用于