EdmFunctions.Count(DbExpression) Metódus

Definíció

Létrehoz egy olyan fájlt DbFunctionExpression , amely meghívja a canonical "Count" függvényt a megadott gyűjteményen keresztül. A kifejezés eredménytípusa: 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

Paraméterek

collection
DbExpression

Egy kifejezés, amely meghatározza azt a gyűjteményt, amelyre a darabszámot ki kell számítani.

Válaszok

Egy új DbFunctionExpression, amely létrehozza a darabszámot.

Kivételek

collection az null.

collection érvénytelen.

A következőre érvényes: