Method ToDataTables
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
ToDataTables(IDataReader)
Loads every result set of an IDataReader, from the current one on, into its own DataTable.
public static List<DataTable> ToDataTables(this IDataReader reader)
Parameters
readerIDataReaderThe IDataReader to iterate.
Returns
Remarks
It calls NextResult() to check for more results, so the reader is left past the last one.
Exceptions
- ArgumentNullException
readeris null.