Show / Hide Table of Contents

Class Aggregator<T>

Represents a data aggregator.

Inheritance
Object
Aggregator<T>
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 Doc

Aggregator(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 Doc

Accessor

Allows reading data item properties.

Declaration
protected IAccessor<T> Accessor { get; }
Property Value
Type Description
IAccessor<T>

Methods

| Improve this Doc

Finish()

A callback invoked at the aggregation's final stage.

Declaration
public abstract object Finish()
Returns
Type Description
Object

The result of the aggregation.

| Improve this Doc

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.

  • Improve this Doc
Back to top Copyright (c) Developer Express Inc.