dotnet ef 沒法執行,由於找不到指定的命令或文件

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

相關文章
相關標籤/搜索