-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid singularization when scaffolding a manytomany table #29544
Comments
Is you model configuration being loaded? Which command do you run exactly? |
@ErikEJ And if you mean by if my model get's loaded that the above configuration is used, then yes it is. also running |
Thanks, I am able to repro |
/cc @bricelam We should consider patching this. |
Note from triage: prepare a patch for this. |
not sure if ite helps, but i have this issue too. after upgrading from ef core 6 to ef core 7 scaffolding generates a different result. some queries stopped working because of this change. |
@taipignas Can you file a new issue with more information? That looks like a different bug. |
🩹 WorkaroundUnfortunately, the only good workaround here is to manually add the |
Assume the following Database:
When scaffolding in EF7 the following Configuration will be created.
When executing the following statement:
The following SQL will be generated:
resulting in
Microsoft.Data.SqlClient.SqlException: 'Invalid object name 'BlogPost'.'
EF Core version: 7.0
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 7.0)
Operating system:
IDE: (e.g. Visual Studio 2022 17.4)
The text was updated successfully, but these errors were encountered: