DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Método

Definição

Cria um novo 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

Parâmetros

function
EdmFunction

A função que define a operação agregada.

argument
DbExpression

O argumento sobre o qual a função agregada deve ser calculada.

Devoluções

Um novo agregado de funções com referência à função e argumento dados. A propriedade distinta do agregado de funções terá o valor false.

Exceções

function ou argument nulo.

function não é uma função agregada ou tem mais do que um argumento, ou o tipo de resultado de argument não é igual nem promovível ao tipo de parâmetro de function.

Aplica-se a