All docs
V21.2
21.2
21.1
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.v21.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Convert(ICriteriaToExpressionConverter, Expression, ParameterExpression, Expression[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also