dotnet core version: 3.1c#
输入工具
dotnet ef migrations add InitialCreate
会出现下图错误3d
从 3.0 起,EF Core 命令列工具 (dotnet ef) 不在 .NET Core SDK 里面,需另装。命令以下:code
dotnet tool install --global dotnet-ef