DbExpressionBuilder.AggregateDistinct(EdmFunction, DbExpression) Metoda

Definice

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.

Platí pro