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 with Scaffold-dbcontext

Kaleb KSep 2 2021

I'm having an issue using scaffold-dbcontext in .NET 5 webapi.. For any table which unique index is being read it is putting ValueGeneratedOnAdd() on every column, sometimes causing the error "The Properties 'X', 'Y', and 'Z' are configured to use 'Identity' value generator and are mapped to the same table 'SOME_TABLE'
image.png

I can fix the issue by removing manually, but next time I run the command (If we need to add or modify a table) it will be back.. Is there something I can do to address this issue. I can provide more information if needed

Comments
Post Details
Added on Sep 2 2021
4 comments
478 views