DataReaderExtensions.ToDecimal method

namespace: Serenity.Data   assemblySerenity.Net.Data

Reads and converts value at field index to Decimal. Returns DbNull as Null.Decimal.

public static decimal? ToDecimal(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