PivotDataProcessData Method (IDataReader)

NReco.PivotData Class Library Documentation
Processes data from the specified IDataReader.

Namespace:  NReco.PivotData
Assembly:  NReco.PivotData (in NReco.PivotData.dll) Version: 1.3.6.0 (1.3.6.0)
Syntax

public void ProcessData(
	IDataReader dataReader
)

Parameters

dataReader
Type: System.DataIDataReader
data reader instance
Remarks

Dimension names and field names specified for aggregators should correspond reader's column names.
Examples

How to pivot a DataTable:
DataTable tbl;  // this is table with columns: "col1", "col2", "value"
var pvtData = new PivotData( 
  new []{"col1","col2"},
  new SumAggregatorFactory("value") );
pvtData.ProcessData(new DataTableReader(tbl));
See Also

Reference