All docs
V20.1
20.2 (EAP/Beta)
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.

ConnectionProviderSql.RegisterCustomAggregates(ICollection<ICustomAggregateFormattable>) Method

Registers custom aggregate functions to use in any CriteriaOperator-based criteria in your application.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v20.1.dll

Declaration

public void RegisterCustomAggregates(
    ICollection<ICustomAggregateFormattable> customAggregates
)
Public Sub RegisterCustomAggregates(
    customAggregates As ICollection(Of ICustomAggregateFormattable)
)

Parameters

Name Type Description
customAggregates ICollection<ICustomAggregateFormattable>

A collection of custom aggregate functions to register.

Remarks

To search for a specific registered custom aggregate function, call the CriteriaOperator.GetCustomAggregate function.

NOTE
  • The RegisterCustomAggregates method throws an exception if one of the customAggregates has already been registered.
  • Each of the customAggregates must have a unique Name property value. If you use standard aggregate names (Min, Max, Sum, Avg, Single, Exists, and Count), an exception is raised.
See Also