DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří novou 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, pro který má být agregační funkce vypočítán.
Návraty
Nová funkce agreguje s odkazem na danou funkci a argument. Agregační vlastnost Distinct 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 je typ výsledku argument nerovnaný nebo propagační pro typ parametru function.