DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) Método

Definición

Crea un nuevo DbFunctionAggregateobjeto .

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

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 false.

Excepciones

function o argument 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