今天在执行数据库迁移的时候包控制台管理工具给了一个警告 如下:
The Entity Framework tools version ‘5.0.13’ is older than that of the runtime ‘5.0.15’. Update the tools for the latest features and bug fixes.
意思是:实体框架工具版本“5.0.13”比运行时版本“5.0.15”更旧。更新工具以获得最新的特性和bug修复。
接下来以管理员身份打开CMD 运行以下命令:
dotnet tool update --global dotnet-ef
重启visual studio即可