DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Método

Definição

Cria um novo DbFunctionAggregate.Creates a new 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 de agregação.The function that defines the aggregate operation.

argument
DbExpression

O argumento pelo qual a função de agregação deve ser calculada.The argument over which the aggregate function should be calculated.

Retornos

DbFunctionAggregate

Uma nova agregação de função com uma referência para a função e o argumento fornecidos.A new function aggregate with a reference to the given function and argument. A propriedade Distinct da agregação de função terá o valor false.The function aggregate's Distinct property will have the value false.

Exceções

function ou argument nulo.function or argument null.

function não é uma função de agregação ou tem mais de um argumento ou o tipo de resultado de argument não é passível de promoção ou igual ao tipo de parâmetro de function.function is not an aggregate function or has more than one argument, or the result type of argument is not equal or promotable to the parameter type of function.

Aplica-se a