The term 'Update-Database' is not recognized as the name of a cmdlet

前端 未结 26 996
无人共我
无人共我 2020-12-07 19:35

I am using EF5 beta1 and while I was able to run the \"Update-Database\" before. Now that I shut down Visual Studio, I cannot get it to run. I get the following error:

26条回答
  •  余生分开走
    2020-12-07 20:05

    In my case:

    • Reload project did not help
    • Restart VS did not help
    • Restart computer did not help
    • Reinstal EF did not help

    But I found an article where suggestion was to manualy import missing EF package, using PM Conole:

    Import-Module .\packages\EntityFramework.X.X.X\tools\EntityFramework.psm1

    And this solution solved my problem.

提交回复
热议问题