Skip to main content

ICustomAggregateConvertibleToExpression.Convert(ICriteriaToExpressionConverter, Expression, ParameterExpression, Expression[]) Method

When implemented by a custom aggregate function, converts it to a Linq expression.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

Expression Convert(
    ICriteriaToExpressionConverter converter,
    Expression collectionProperty,
    ParameterExpression elementParameter,
    params Expression[] operands
)

Parameters

Name Type Description
converter DevExpress.Data.Linq.ICriteriaToExpressionConverter

An DevExpress.Data.Linq.Helpers.ICriteriaToExpressionConverter object that converts a criteria to an expression.

collectionProperty Expression

An Expression that returns a collection used to calculate a custom aggregate.

elementParameter ParameterExpression

An Expression that returns a collection’s item that provides arguments for the custom aggregate function.

operands Expression[]

An array of Expressions that specify aggregate function operands.

Returns

Type Description
Expression

An Expression object that specifies a LINQ expression.

Remarks

You can use this interface if you require a custom aggregate function to work with the following server-mode sources:LinqServerModeSource, LinqInstantFeedbackSource, PLinqServerModeSource, PLinqInstantFeedbackSource, EntityServerModeSource, and EntityInstantFeedbackSource.

See Also