Skip to Main Content

ODP.NET

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!

Problem scaffolding OracleDB using EntityFrameworkCore

User_TKA7XMay 20 2021

After scaffolding my Oracle Database I get run time errors that look like this:
The properties x,y,z... are configured to use 'Identity' value generator and are mapped to the same table . Only one column per table can be configured as 'Identity'
I discovered that it can be fixed by removing .ValueGeneratedOnAdd( ) from select columns in the DB Context file.
Is there a way I can scaffold the database without manual edits afterwards?
Manual editing of machine generated code is wasteful, because for example if I have to re-scaffold in the future I will have to do all of this manual work again.

This post has been answered by Alex Keh-Oracle on Mar 21 2022
Jump to Answer
Comments
Post Details
Added on May 20 2021
42 comments
7,157 views