[编译环境][Entity Framework Core]数据库迁移操作 数据库迁移操作 数据库迁移操作 在项目根目录下打开命令窗口 1.增加迁移 dotnet ef migrations add 名字 2.删除迁移 dotnet ef migrations remove 3.更新数据库 dotnet ef database update 4.生成脚本 dotnet ef migrations script 5.还原数据库版本 dotnet ef database update 名字