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

Sachin SinghPosted Nov 8, 2021, 6:32 PM
Marius VasilePosted Nov 8, 2021, 10:15 AM
Major changes, I deleted several models and add others. Every time I applied the changes with add-migration and update-database
Srinivasan RamamoorthiPosted Nov 8, 2021, 10:12 AM
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