Sdílet prostřednictvím


DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Metoda

Definice

Vytvoří nový objekt DbFunctionAggregate.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionAggregate Aggregate (this System.Data.Entity.Core.Metadata.Edm.EdmFunction function, System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member Aggregate : System.Data.Entity.Core.Metadata.Edm.EdmFunction * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.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ý 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 false.

Výjimky

funkce nebo argumentu 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