需要为项目安装Microsoft.EntityFramework.Tool插件,该插件为vs的package manager console 提供了常用命令。
管理迁移请参考:
管理迁移-EF Core | Microsoft Docs