Summer.Batch.Data.DataRecordWrapper Class Reference

Utility class to handle data conversion from a IDataRecord. More...

Public Member Functions

 DataRecordWrapper (IDataRecord dataRecord)
 Constructs a new DataRecordWrapper. More...
 
object GetValue (int i)
 Gets a raw value from the data record. More...
 
Get< T > (int i)
 Gets a converted value from the data record. More...
 
Get< T > (int i, T defaultValue)
 Gets a converted value from the data record. More...
 
object Get (int i, Type type, object defaultValue)
 Gets a converted value from the data record. More...
 

Detailed Description

Utility class to handle data conversion from a IDataRecord.

Constructor & Destructor Documentation

Summer.Batch.Data.DataRecordWrapper.DataRecordWrapper ( IDataRecord  dataRecord)

Constructs a new DataRecordWrapper.

Parameters
dataRecordthe data record to get the data from

Member Function Documentation

object Summer.Batch.Data.DataRecordWrapper.Get ( int  i,
Type  type,
object  defaultValue 
)

Gets a converted value from the data record.

Parameters
ithe index of the column to get the data from
typethe type to convert the data to
defaultValuethe default value if the column is null.
Returns
the converted data in the column

Gets a converted value from the data record.

Template Parameters
T the type to convert the data to
Parameters
ithe index of the column to get the data from
Returns
the converted data in the column
T Summer.Batch.Data.DataRecordWrapper.Get< T > ( int  i,
defaultValue 
)

Gets a converted value from the data record.

Template Parameters
T the type to convert the data to
Parameters
ithe index of the column to get the data from
defaultValuethe default value if the column is null.
Returns
the converted data in the column
object Summer.Batch.Data.DataRecordWrapper.GetValue ( int  i)

Gets a raw value from the data record.

Parameters
ithe index of the column to get the data from
Returns
the data in the column, without conversion

The documentation for this class was generated from the following file:
  • Summer.Batch.Data/DataRecordWrapper.cs