Execute DataTable aggregation.
Classes
Class | Description | |
---|---|---|
AbsAggregatable |
Abstract Class for Aggregatable Class It's designed to convert Json. | |
DataAggregator |
The class for aggregating DataTable.You can get List of class with subtotal items. Caution:You have to sort DataTable before aggregation. The Aggregation rule is defined in AbsAggregatable. So If you want to execute aggregate,there are 2 steps. 1.Make class that inherits AbsAggregatable and implements MustOverride.
1.1 Implements createInstance : conversion for DataRow to class instance. Aggregate's result is List(Of your_class) that includes aggregated(subtotal) record. Aggregation is executed by below process
1. Split DataTable by id. Id is made by MakeId and it depends on depth. |