Using a entity framework 5 project dll with Web project using EF6

流过昼夜 提交于 2019-12-08 08:56:13

问题


I have a logging solution that uses EF5 which I am referencing in a new a new web application that uses EF 6. I am getting the following error when consuming the anything from that logging dll:

Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'

I know why I am getting the error, it's because namespaces have changed from EF5 to EF6, but is there a way I can have the two co-exist without having to change my EF5 project which is being used elsewhere?

来源:https://stackoverflow.com/questions/20499170/using-a-entity-framework-5-project-dll-with-web-project-using-ef6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!