M
Mark Poppers
Normally I retrieve an (e.g. DECIMAL) value from a database record by enumerating
the column number like:
Decimal localvar = reader.GetDecimal(3);
Which means "Get the decimal value from the 3rd column in the database record".
However is there a way to tell CSharp to retrieve the Decimal value from
the column named "MYAMOUNT" ?
I could imagine that it works similar to:
Decimal localvar = reader.GetDecimal(GetColumnNumberFor("MYAMOUNT"));
Marl
the column number like:
Decimal localvar = reader.GetDecimal(3);
Which means "Get the decimal value from the 3rd column in the database record".
However is there a way to tell CSharp to retrieve the Decimal value from
the column named "MYAMOUNT" ?
I could imagine that it works similar to:
Decimal localvar = reader.GetDecimal(GetColumnNumberFor("MYAMOUNT"));
Marl