Class Aggregator<T>
Represents a data aggregator.
Namespace: DevExtreme.AspNet.Data.Aggregation
Assembly: DevExtreme.AspNet.Data.dll
Syntax
public abstract class Aggregator<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the data items to be aggregated. |
Constructors
| Improve this DocAggregator(IAccessor<T>)
Initializes a new Aggregator class instance with an object that allows reading data item properties.
Declaration
protected Aggregator(IAccessor<T> accessor)
Parameters
| Type | Name | Description |
|---|---|---|
| IAccessor<T> | accessor | An object that allows reading data item properties. |
Properties
| Improve this DocAccessor
Allows reading data item properties.
Declaration
protected IAccessor<T> Accessor { get; }
Property Value
| Type | Description |
|---|---|
| IAccessor<T> |
Methods
| Improve this DocFinish()
A callback invoked at the aggregation's final stage.
Declaration
public abstract object Finish()
Returns
| Type | Description |
|---|---|
| Object | The result of the aggregation. |
Step(T, String)
A callback invoked once for each data item.
Declaration
public abstract void Step(T container, string selector)
Parameters
| Type | Name | Description |
|---|---|---|
| T | container | A data item. |
| String | selector | The name or path to the property whose value should be aggregated. |