DbExpressionBuilder.AggregateDistinct(EdmFunction, DbExpression) Método

Definición

Crea un nuevo DbFunctionAggregate que se aplica de forma distinta.

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

Función que define la operación de agregado.

argument
DbExpression

Argumento sobre el que se debe calcular la función de agregado.

Devoluciones

Nuevo agregado de función con una referencia a la función y el argumento especificados. La propiedad Distinct del agregado de función tendrá el valor true.

Excepciones

function o argument es null.

function no es una función de agregado o tiene más de un argumento, o el tipo de resultado de argument no es igual o promotable al tipo de parámetro de function.

Se aplica a