Table of Contents

Method ToReportReader

Namespace
ReportWright.Data.SystemData
Assembly
ReportWright.Data.SystemData.dll

ToReportReader(IDataReader, bool)

Wraps a reader. Column types come from GetFieldType(int); every column allows null, which no row can violate.

public static ReportDataReader ToReportReader(IDataReader reader, bool disposeReader = true)

Parameters

reader IDataReader

The reader, positioned before its first row.

disposeReader bool

Whether disposing the result disposes reader.

Returns

ReportDataReader

The engine's reader.

Exceptions

ArgumentNullException

reader is null.

ToReportReader(DataTable)

Wraps a table, with each column's AllowDBNull as its nullability.

public static ReportDataReader ToReportReader(DataTable table)

Parameters

table DataTable

The table.

Returns

ReportDataReader

The engine's reader.

Exceptions

ArgumentNullException

table is null.