DataReaderExtensions class

namespace: Serenity.Data   assemblySerenity.Net.Data

Extension methods for IDataReader objects.

public static class DataReaderExtensions

Public Members

name description
static AsDateTime(…) Reads value at field index. Returns DbNull as Null.DateTime.
static AsDecimal(…) Reads value at field index. Returns DbNull as Null.Decimal.
static AsDouble(…) Reads value at field index. Returns DbNull as Null.Double.
static AsInt32(…) Reads value at field index. Returns DbNull as Null.Int32.
static AsInt64(…) Reads value at field index. Returns DbNull as Null.Int64.
static AsString(…) Reads value at field index. Returns DbNull as null.
static ToDateTime(…) Reads and converts value at field index to DateTime. Returns DbNull as Null.DateTime.
static ToDecimal(…) Reads and converts value at field index to Decimal. Returns DbNull as Null.Decimal.
static ToDouble(…) Reads and converts value at field index to Double. Returns DbNull as Null.Double.
static ToInt32(…) Reads and converts value at field index to Int32. Returns DbNull as Null.Int32.
static ToInt64(…) Reads and converts value at field index to Int64. Returns DbNull as Null.Int64.
static ToString(…) Reads and converts value at field index to String. Returns DbNull as null.

See Also