dotnet ef 无法执行,因为找不到指定的命令或文件

dotnet core version: 3.1

输入

dotnet ef migrations add InitialCreate

会出现下图错误

从 3.0 起,EF Core 命令列工具 (dotnet ef) 不在 .NET Core SDK 里面,需另装。命令如下:

dotnet tool install --global dotnet-ef

posted @ 2020-04-18 10:49  Cody&  阅读(1998)  评论(1编辑  收藏  举报