BelhardTraining.Extensions.DbDataReaderExtensions.GetDecimal C# (CSharp) Method

GetDecimal() public static method

public static GetDecimal ( this reader, string columnName ) : decimal
reader this
columnName string
return decimal
        public static decimal GetDecimal(this DbDataReader reader, string columnName)
        {
            return reader.GetDecimal(reader.GetOrdinal("columnName"));
        }