Page 1 of 1

Map Oracle Number to CLR double

Posted: Tue 17 May 2016 09:31
by DavidBrower
We have been using Entity Developer to generate POCOs from an Oracle database and then using these POCOs to create tables in SQL Server. However, I notice that we are losing some precision with some of the numbers that have an unqualified NUMBER type.

Looking at https://msdn.microsoft.com/en-GB/library/ms151817.aspx I can see that NUMBER maps to float and not decimal and that, therefore, the POCO property should be a double and not a decimal.

Is there some to specify that an unqualified NUMBER should map to a CLR double?

Re: Map Oracle Number to CLR double

Posted: Wed 18 May 2016 09:50
by DavidBrower
Is there any way to do this?

Re: Map Oracle Number to CLR double

Posted: Wed 18 May 2016 13:54
by Shalex
Please change a predefined mapping for the Database First approach via the Tools > Entity Developer > Options menu of Visual Studio. After the change, the new mapping will be applied for the newly created models. Does this help?