DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Méthode

Définition

Crée un nouveau DbFunctionAggregate.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionAggregate ^ Aggregate(System::Data::Metadata::Edm::EdmFunction ^ function, System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbFunctionAggregate Aggregate(this System.Data.Metadata.Edm.EdmFunction function, System.Data.Common.CommandTrees.DbExpression argument);
static member Aggregate : System.Data.Metadata.Edm.EdmFunction * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionAggregate
<Extension()>
Public Function Aggregate (function As EdmFunction, argument As DbExpression) As DbFunctionAggregate

Paramètres

function
EdmFunction

Fonction qui définit l’opération d’agrégation.

argument
DbExpression

Argument sur lequel la fonction d’agrégation doit être calculée.

Retours

Un nouvel agrégat de fonctions avec une référence à la fonction et à l’argument donnés. La propriété Distinct de l’agrégat de fonction aura la valeur false.

Exceptions

function ou argument null.

function n’est pas une fonction d’agrégation ou a plusieurs arguments, ou le type de résultat n’est argument pas égal ou promotable au type de paramètre de function.

S’applique à