DataReaderExtensions.AsDecimal method

namespace: Serenity.Data   assemblySerenity.Net.Data

Reads value at field index. Returns DbNull as Null.Decimal.

public static decimal? AsDecimal(this IDataReader reader, int index)
parameter description
reader Reader (required).
index Index.

Return Value

Field value or Null.Decimal if value is DbNull.

See Also