Entity Framework 6 with SQL Server 2012 gives System.Data.Entity.Core.ProviderIncompatibleException

前端 未结 1 1610
生来不讨喜
生来不讨喜 2021-01-18 06:08

I have Visual Studio 2012 and I\'m using the Entity Framework stack with EF 6. I did all correct but while adding migration I am getting the error .

相关标签:
1条回答
  • 2021-01-18 07:08

    Try this. Make sure that the project that your ShoppingCartContext is in, is the start up project or when executing the add-migration command include the parameter -startupprojectname ex. add-migration -startupprojectname yourprojectname

    0 讨论(0)
提交回复
热议问题