This is happening recently, I use not to have issues with migration before. When I publish the site to be uploaded to IIS, there is no migration script despite the fact that at least one migration was applied during development.
I use Visual Studio Community 2019 for an asp.net core razor pages web app with Microsoft SQL
Executing command: dotnet ef migrations script --no-build --idempotent --configuration Release --output
Why is this happening and how do I fix it. Thank you


Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 8, 2021, 5:12 AM EST
Can you share what changes were applied in the data model? there are limitations on what changes can be done to data model.
https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/migrations?view=aspnetcore-6.0&tabs=visual-studio
Marius VasileRank #785 · 2.9K reputationPosted Nov 8, 2021, 5:15 AM EST
Major changes, I deleted several models and add others. Every time I applied the changes with add-migration and update-database
Sachin SinghRank #66 · 26.2K reputationPosted Nov 8, 2021, 1:32 PM EST