Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

Working with EF for Oracle database. “Schema specified is not valid”

$
0
0

The field in Oracle database is of NUMBER(5), and when I generate EF models from the oracle database, it converts the field into "Int16". There are some of the rows for that field having values such as "50000", etc, so Int16 is throwing error for obvious reasons. Now I tried changing it to Int32, and also Decimal in EF models, but it is now giving an error saying -

Member Mapping specified is not valid. The type 'Edm.Decimal[Nullable=True,DefaultValue=,Precision=,Scale=]' of member 'Field1' in type 'MyApp_Models.MyTable' is not compatible with 'OracleEFProvider.number

Any idea what is wrong here, and what is possible solution of this?

Any help on this much appreciated.


Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>