DbExpressionBuilder.AggregateDistinct(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 , která se použije odlišně.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionAggregate ^ AggregateDistinct(System::Data::Metadata::Edm::EdmFunction ^ function, System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbFunctionAggregate AggregateDistinct(this System.Data.Metadata.Edm.EdmFunction function, System.Data.Common.CommandTrees.DbExpression argument);
static member AggregateDistinct : System.Data.Metadata.Edm.EdmFunction * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionAggregate
<Extension()>
Public Function AggregateDistinct (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 true.
Výjimky
function nebo argument má hodnotu 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.