EF 6 with a dnx project

前端 未结 3 1802
[愿得一人]
[愿得一人] 2021-01-17 20:56

I have a new ASP.net 5 dnx class library I am using for entity framework. I need to target EF 6 because some features I need are not in EF 7.

First the EF tools (li

3条回答
  •  滥情空心
    2021-01-17 21:42

    Following this recommendation, EF6 data projects should use the existing .NET Framework class library csproj type.

    Even after following the recommendations, I was still getting the same error. Unloading your ASP.NET Core project(s) and then invoking the Enable-Migrations command on the appropriate csproj should allow the command to execute. You can unload a project by right-clicking on the .NET Core project and choosing the 'Unload Project' option. It should also be noted that the Package Manager Console window has a 'Default project:' drop-down selection. You should choose the project with your DbContext.

提交回复
热议问题