Class DataReaderExtensions
Class DataReaderExtensions.
Inheritance
System.Object
DataReaderExtensions
Namespace: ISynergy.Framework.Core.Extensions
Assembly: ISynergy.Framework.Core.dll
Syntax
public static class DataReaderExtensions : object
Methods
View SourceIsDBNull(IDataReader, String)
Checks if a column's value is DBNull
Declaration
public static bool IsDBNull(this IDataReader dataReader, string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataReader | dataReader | The data reader |
| System.String | columnName | The column name |
Returns
| Type | Description |
|---|---|
| System.Boolean | A bool indicating if the column's value is DBNull |
MapToList<T>(IDataReader)
Maps to list.
Declaration
public static List<T> MapToList<T>(this IDataReader datareader)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataReader | datareader | The datareader. |
Returns
| Type | Description |
|---|---|
| List<T> | List<T>. |
Type Parameters
| Name | Description |
|---|---|
| T |