We should warn during the following commands when there are pending model changes that can be added to a new migration. * ~Update-Database (dotnet ef database update)~ done in https://github.com/dotnet/efcore/issues/33732 * Script-Migration (dotnet ef migration script) * Get-Migration (dotnet ef migration list) * Get-DbContext -Context (dotnet ef dbcontext info) * ~~Note, the output of this command could also be used programmatically (via --json) to test if there are any pending model changes~~ (PR #31164)
We should warn during the following commands when there are pending model changes that can be added to a new migration.
Update-Database (dotnet ef database update)done in Warn on Migrate() when there are pending model changes #33732Note, the output of this command could also be used programmatically (via --json) to test if there are any pending model changes(PR Addmigrations has-pending-model-changesCommand #31164)