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 de agregação.

argument
DbExpression

O argumento pelo qual a função de agregação deve ser calculada.

Retornos

Uma nova agregação de função com uma referência para a função e o argumento fornecidos. A propriedade Distinct da agregação de função terá o valor false.

Exceções

function ou argument nulo.

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.

Aplica-se a