All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.2.dll

Declaration

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

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