Table of Contents

ToColumns Method

Definition

Namespace
Cuemon.Extensions.Data
Assemblies
Cuemon.Extensions.Data.dll
Source
src/Cuemon.Extensions.Data/DataReaderExtensions.cs

ToColumns(IDataReader)

Converts the specified and read-initialized reader implementation to a column-like data transfer object.

public static DataTransferColumnCollection ToColumns(this IDataReader reader)

Parameters

reader IDataReader

The read-initialized reader to be converted.

Returns

DataTransferColumnCollection

A DataTransferColumnCollection that is the result of the specified and read-initialized reader.

Exceptions

ArgumentNullException

reader is null.

ArgumentException

reader is closed.

InvalidOperationException

Invalid attempt to read from reader when no data is present.