EdmFunctions.LongCount(DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska bigcount-funktionen över den angivna samlingen. Resultattypen för uttrycket är 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

Parametrar

collection
DbExpression

Ett uttryck som anger den samling som antalsvärdet ska beräknas för.

Returer

En ny DbFunctionExpression som producerar count-värdet.

Undantag

collection är null.

collection är ogiltigt.

Gäller för