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
readerIDataReaderThe reader, positioned before its first row.
disposeReaderboolWhether disposing the result disposes
reader.
Returns
- ReportDataReader
The engine's reader.
Exceptions
- ArgumentNullException
readeris null.
ToReportReader(DataTable)
Wraps a table, with each column's AllowDBNull as its nullability.
public static ReportDataReader ToReportReader(DataTable table)
Parameters
tableDataTableThe table.
Returns
- ReportDataReader
The engine's reader.
Exceptions
- ArgumentNullException
tableis null.