EdmFunctions.Count(DbExpression) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee maakt u een DbFunctionExpression die de canonieke functie Aantal aanroept voor de opgegeven verzameling. Het resultaattype van de expressie is 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
Parameters
- collection
- DbExpression
Een expressie waarmee de verzameling wordt opgegeven waarvoor de tellingswaarde moet worden berekend.
Retouren
Een nieuwe DbFunctionExpression die de tellingswaarde produceert.
Uitzonderingen
collection is null.
collection is ongeldig.