EntityFramework 5 use dll version 4.4.0.instead 5.0

后端 未结 1 1904
时光取名叫无心
时光取名叫无心 2020-12-29 01:44

I have project based on .NET 4.0 but I need to use EntityFramework 5 in my solution. So I install it from the NuGet.

After that I change target framework to .NET 4.5

相关标签:
1条回答
  • 2020-12-29 02:32

    Newer version (the real EF5) is dependent on .NET 4.5. If you have added EF5 when your project was based on .NET 4.0 you will have only EF 4.4 (EF5 version without features dependent on .NET 4.5). After upgrading to EF 5.0 you need to update EntityFramework package. You can try to use Update-Package command. If it doesn't help you will need to uninstall package first and than add it again.

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