在“程序包管理器控制台執行Enable-Migrations” 命令出現以下錯誤:
無法將“Enable-Migrations”項識別為 cmdlet、函數、腳本文件或可運行程序的名稱。請檢查名稱的拼寫,如果包括路徑,請確保路徑正確,然后重試。
所在位置 行:1 字符: 18
+ Enable-Migrations <<<<
+ CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
如果能確定不是拼寫錯誤的情況下,可以嘗試這樣子解決:
使用Nuget管理器 下載引用EntityFramework 6.1.3