Closed piotr-mamenas closed 1 year ago
@piotr-mamenas I have not been able to reproduce this. Can you please post the project/solution that you created when following the steps to reproduce?
Thanks @ajcvickers
I am afraid this is not possible.
We managed to fix it however. Seems the DbSet was missing but there were joins defined on some of the configuration for other entity, linking to that particular entity so the table was added even despite the DbSet not there (with wrong pluralized name).
The entity name School is improperly pluralized as "School" instead of "Schools" when running Add-Migration. I attempted to fix it by adding builder.ToTable("Schools") into the configuration but that does not generate any command in the migration.
Steps to reproduce
Further technical details
EF Core version: 2.2.6 Database Provider: SQL Server Operating system: Windows 10 Pro IDE: Visual Studio 2019 16.0 Preview 5.0