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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
43 comments
5,373 views