Class DataTransferExtensions
This is an extensions implementation of the most common methods on the DataTransfer class.
Inheritance
System.Object
DataTransferExtensions
Namespace: Cuemon.Data
Assembly: Cuemon.Data.dll
Syntax
public static class DataTransferExtensions
Methods
| Improve this DocToColumns(IDataReader)
Converts the specified and read-initialized reader
implementation to a column-like data transfer object.
Declaration
public static DataTransferColumnCollection ToColumns(this IDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Data.IDataReader | reader | The read-initialized reader to be converted. |
Returns
Type | Description |
---|---|
DataTransferColumnCollection | A DataTransferColumnCollection that is the result of the specified and read-initialized |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException |
|
System.InvalidOperationException | Invalid attempt to read from |
ToRows(IDataReader)
Converts the specified reader
implementation to a table-like data transfer object.
Declaration
public static DataTransferRowCollection ToRows(this IDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Data.IDataReader | reader | The reader to be converted. |
Returns
Type | Description |
---|---|
DataTransferRowCollection | A DataTransferRowCollection that is the result of the specified |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException |
|