why remove-migration run my app?
问题 I did some version upgrade in last months and now I noticed that when I use "remove-migration" to delete migration that I reverted, it's first run my app. (I noticed that because we do update-database inside startup, so I got to situation where I can't remove migrations, since every time I tried remove migration - it automatically ran the startup which apply the migration to db, then it failed delete it, since it see it in db.) any idea? 回答1: Update for ASP.NET Core 2.1 In ASP.NET Core 2.1