Sdílet prostřednictvím


DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Metoda

Definice

Vytvoří nový objekt 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

Parametry

function
EdmFunction

Funkce, která definuje agregační operaci.

argument
DbExpression

Argument, ze kterého se má agregační funkce vypočítat.

Návraty

Nová agregace funkce s odkazem na danou funkci a argument. Vlastnost Distinct agregace funkce bude mít hodnotu false.

Výjimky

function nebo argument null.

function není agregační funkce nebo má více než jeden argument, nebo typ argument výsledku není roven nebo není možné ho povolit typu parametru function.

Platí pro