Table of Contents

Method Add

Namespace
DocWright.Reporting.Data
Assembly
DocWright.Reporting.dll

Add(string, ReportDataTable)

Supplies a table for a dataset.

public ReportInMemoryDataProvider Add(string dataSetName, ReportDataTable table)

Parameters

dataSetName string

The dataset's name, exactly as the definition declares it.

table ReportDataTable

The 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

dataSetName string

The dataset's name, exactly as the definition declares it.

data ReportObjectData<T>

The objects, with their columns declared.

Returns

ReportInMemoryDataProvider

This provider.

Type Parameters

T

The type of the objects.

Exceptions

ArgumentNullException

An argument is null.

InvalidOperationException

The dataset already has data.