Enable-Migrations installation error

前端 未结 5 1327
春和景丽
春和景丽 2020-12-06 10:06

I\'m running into a problem when enabling migrations on one of my projects. I execute Enable-Migrations command from the Nuget Console and receive an err

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 10:38

    Just in case others are still having issues, I had this problem because I had both Entity Framework 6 and Entity Framework Core installed. Just running the commands defaults to EF6, I believe. After I prefaced the commands with 'EntityFrameworkCore/', it worked fine. I'm not an expert on this, so don't if that is incorrect, I apologize. (Ex. 'EntityFrameworkCore/')

提交回复
热议问题