BUG: superfluous digits returned - EF and non direct mode
Posted: Tue 10 Aug 2010 12:08
I have a trouble with the use of Entity Framework and non direct mode. If I have the following binding :
Table A, COLUMN A NUMBER(4,3)
Mapping EF : A.A -> A.Value is made in double
Sometimes, depending on the value in the database, I get exceeding digits in the returned query. Say I have 0,945 in the column A.A :
direct mode : ObjectContext.As.First() return a A object with A.Value = 0,945 it's ok
non direct mode : ObjectContext.As.First() return a A object with A.Value = 0,94500006 it's not ok !
This leads to IHM bugs in my application since I switched from direct to non direct mode.
Table A, COLUMN A NUMBER(4,3)
Mapping EF : A.A -> A.Value is made in double
Sometimes, depending on the value in the database, I get exceeding digits in the returned query. Say I have 0,945 in the column A.A :
direct mode : ObjectContext.As.First() return a A object with A.Value = 0,945 it's ok
non direct mode : ObjectContext.As.First() return a A object with A.Value = 0,94500006 it's not ok !
This leads to IHM bugs in my application since I switched from direct to non direct mode.