How can I influence ODP.NET that I get allways System.Decimal when reading a number column from orac
OPD.NET Windows Server 2008Version 11.01
Oracle : 11.2.0.4.PSU1
Reading number columns from a oracle instance ODP.NET store the columns in deferent datatype dependence on presicion and scale. How can I influence ODP.NET to store this columns always in Decimal datatype? Exists there any parameter which I can set?
Why this question?
Our Problem is that a column defined as number(7,3) and a content of 0.056 is returned in ODP.NET as single and the conversion into a double change the content from 0.056 to 0.0560000017285347 .
The old oracle odbc driver always works with decimal and the conversion from decimal to double never changed the content.