Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle.EntityFrameworkCore Number(4,0) is converted to byte.

Thananchayan KTJul 22 2019 — edited Aug 6 2019

We are using oracle 12c , and the ORM is Oracle.EntityFrameworkCore . We are using database first methodology and when the database is scaffold with Oracle.EntityFrameworkCore , Number(4,0) is converted to byte in the dbcontext file.

In oracle, if you assign NUMBER(4,0) to a variable you can add up to (9999) into the database. In C#, If you assign a byte to a variable you can only add up to (255) into the memory. With this issue we are having trouble saving and retrieving data.

Can you provide us a solution ?

Comments
Post Details
Added on Jul 22 2019
1 comment
1,106 views