Entity Framework code first migrations throwing error

后端 未结 9 1623
再見小時候
再見小時候 2021-02-13 20:17

Here is what I did before I got this error:

  1. Installed EF (the pre release version, 6 maybe, I dunno)
  2. decided I did not want, so uninstalled that and reins
9条回答
  •  名媛妹妹
    2021-02-13 20:51

    1. Open Manage NUGET Packages for solution... window and update EntityFramework
    2. Restart Visual Studio
    3. Run the command in package manager console Enable-Migrations -ContextTypeName Movie.Models.MovieDBContext(This is a sample context)

提交回复
热议问题