I'm using EF6 ModelFirst and Oracle ODP Managed driver 12c to develop .NET application (One solution containing solely one project)
I run into a mapping problem between Oracle and .NET.
I'm trying to specify custom mapping in web.config like that :
<oracle.manageddataaccess.client>
<version number="*">
<edmMappings>
<edmMapping dataType="number">
<add name="bool" precision="1" />
<add name="byte" precision="3" />
<add name="int16" precision="4" />
<add name="int32" precision="9" />
<add name="int64" precision="18" />
</edmMapping>
</edmMappings>
<dataSources>
...
</dataSources>
</version>
</oracle.manageddataaccess.client>
After generating the .edmx, number(5) columns are still mapped into "short" .NET Type (Int16)
Obviously, this .NET Type is not suitable for ZIP code like 59000
If I modify the column mapping from Int16 to Int32 Type in the .edmx, I get the 2019 error specifying that I've got bad mapping
Workaround: When I modify the xml version of the edmx, if I delete the precision of the column it works with Int32 but after updating the model from database, the modifications are overwritten.