Method ToDataTable
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
ToDataTable(IDataReader)
Loads the current result set of an IDataReader into a DataTable.
public static DataTable ToDataTable(this IDataReader reader)
Parameters
readerIDataReaderThe IDataReader to iterate.
Returns
Remarks
The reader stays open and is left on that result set, so NextResult() moves to the next one.
Exceptions
- ArgumentNullException
readeris null.