Sdílet prostřednictvím


DbExpressionBuilder.AggregateDistinct(EdmFunction, DbExpression) Metoda

Definice

Vytvoří nový DbFunctionAggregate , který se použije odlišným způsobem.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionAggregate AggregateDistinct(this System.Data.Entity.Core.Metadata.Edm.EdmFunction function, System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member AggregateDistinct : System.Data.Entity.Core.Metadata.Edm.EdmFunction * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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ý se má agregační funkce vypočítat.

Návraty

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

Výjimky

argument nebo funkce má hodnotu null.

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

Platí pro