Method Add
Add(string, ReportDataTable)
Supplies a table for a dataset.
public ReportInMemoryDataProvider Add(string dataSetName, ReportDataTable table)
Parameters
dataSetNamestringThe dataset's name, exactly as the definition declares it.
tableReportDataTableThe rows.
Returns
- ReportInMemoryDataProvider
This provider.
Exceptions
- ArgumentNullException
An argument is null.
- InvalidOperationException
The dataset already has data.
Add<T>(string, ReportObjectData<T>)
Supplies a sequence of objects for a dataset.
public ReportInMemoryDataProvider Add<T>(string dataSetName, ReportObjectData<T> data)
Parameters
dataSetNamestringThe dataset's name, exactly as the definition declares it.
dataReportObjectData<T>The objects, with their columns declared.
Returns
- ReportInMemoryDataProvider
This provider.
Type Parameters
TThe type of the objects.
Exceptions
- ArgumentNullException
An argument is null.
- InvalidOperationException
The dataset already has data.