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

前端 未结 26 935
无人共我
无人共我 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:23

    For anyone who is using .Net Core and EntityFrameworkCore:

    You will need to install Microsoft.EntityFrameworkCore.Tools package to resolve this issue.

    Read more here: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell

提交回复
热议问题