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.2.dll
NuGet Package: DevExpress.Data
#Declaration
Expression Convert(
ICriteriaToExpressionConverter converter,
Expression collectionProperty,
ParameterExpression elementParameter,
params Expression[] operands
)
#Parameters
Name | Type | Description |
---|---|---|
converter | DevExpress. |
An DevExpress. |
collection |
Expression | An Expression that returns a collection used to calculate a custom aggregate. |
element |
Parameter |
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.