GetRows Method
Definition
GetRows(IDataReader)
Converts the specified reader implementation to a table-like data transfer object collection.
public static DataTransferRowCollection GetRows(IDataReader reader)
Parameters
readerIDataReaderThe reader to be converted.
Returns
- DataTransferRowCollection
A DataTransferRowCollection that is the result of the specified
reader.
Exceptions
- ArgumentNullException
readeris null.- ArgumentException
readeris closed.