DbContext scaffold missing IndexerProperty for M2M relation after moving to EF Core 7 #29634
Labels
area-scaffolding
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
Milestone
After moving to version 7, we are now missing IndexerProperty in scaffolded DBContext for many to many relations.
DbContext, the problematic part of code:
We are getting an error on SaveChangesAsync when we try to connect
user
withmockup
instance.Exception message
After adding these 2 missing lines everything works fine.
We couldn't find in the documentation that something has been changed compared to the previous version.
Is there any configuration parameter that we need to add now to have the previous behavior?
Include provider and version information
EF Core version: 7.0
Database provider: PostgreSQL
Target framework: NET 7.0
Operating system:
IDE: (e.g. Visual Studio 2022 17.4)
The text was updated successfully, but these errors were encountered: