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... | |
T | Get< T > (int i) |
Gets a converted value from the data record. More... | |
T | 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
-
dataRecord the 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
-
i the index of the column to get the data from type the type to convert the data to defaultValue the default value if the column is null.
- Returns
- the converted data in the column
T Summer.Batch.Data.DataRecordWrapper.Get< T > | ( | int | i | ) |
Gets a converted value from the data record.
- Template Parameters
-
T the type to convert the data to
- Parameters
-
i the 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, |
T | defaultValue | ||
) |
Gets a converted value from the data record.
- Template Parameters
-
T the type to convert the data to
- Parameters
-
i the index of the column to get the data from defaultValue the 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
-
i the 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