DataReaderExtensions class
namespace: Serenity.Data assembly: Serenity.Net.Services
Extension methods for IDataReader objects.
public static class DataReaderExtensions
Public Members
| name | description |
|---|---|
| static AsDateTime(…) | Reads the value at the field index. Returns null if the value is DBNull. |
| static AsDecimal(…) | Reads the value at the field index. Returns null if the value is DBNull. |
| static AsDouble(…) | Reads the value at the field index. Returns null if the value is DBNull. |
| static AsInt32(…) | Reads the value at the field index. Returns null if the value is DBNull. |
| static AsInt64(…) | Reads the value at the field index. Returns null if the value is DBNull. |
| static AsString(…) | Reads the value at the field index. Returns null if the value is DBNull. |
| static ToDateTime(…) | Reads and converts the value at the field index to DateTime. Returns null if the value is DBNull. |
| static ToDecimal(…) | Reads and converts the value at the field index to Decimal. Returns null if the value is DBNull. |
| static ToDouble(…) | Reads and converts the value at the field index to Double. Returns null if the value is DBNull. |
| static ToInt32(…) | Reads and converts the value at the field index to Int32. Returns null if the value is DBNull. |
| static ToInt64(…) | Reads and converts the value at the field index to Int64. Returns null if the value is DBNull. |
| static ToString(…) | Reads and converts the value at the field index to String. Returns null if the value is DBNull. |
See Also
- Source: DataReaderExtensions.cs