Udostępnij przez


DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Metoda

Definicja

Tworzy nowy adres 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

Funkcja, która definiuje operację agregacji.

argument
DbExpression

Argument, dla którego ma być obliczana funkcja agregacji.

Zwraca

Nowa funkcja agreguje przy użyciu odwołania do danej funkcji i argumentu. Właściwość Distinct agregującej funkcji będzie miała wartość false.

Wyjątki

function lub argument null.

functionnie jest funkcją agregowaną lub ma więcej niż jeden argument lub typ argument wyniku nie jest równy lub promotable dla typu parametru .function

Dotyczy