DbExpressionBuilder.AggregateDistinct(EdmFunction, DbExpression) Método

Definição

Cria um novo DbFunctionAggregate que é aplicado de modo distinto.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionAggregate ^ AggregateDistinct(System::Data::Metadata::Edm::EdmFunction ^ function, System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbFunctionAggregate AggregateDistinct (this System.Data.Metadata.Edm.EdmFunction function, System.Data.Common.CommandTrees.DbExpression argument);
static member AggregateDistinct : System.Data.Metadata.Edm.EdmFunction * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionAggregate
<Extension()>
Public Function AggregateDistinct (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 true.

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