Question

I have a solution that has three projects: one project uses EntityFramework version 5 (my data access layer) the other uses version 6 (an ASP.NET MVC application). I am using binding redirect for them to co-exist. However, during runtime, I get an error for functionalities that are specific to EntityFramework 5 (DbExtensions to be exact). It looks like that on runtime the version 6 is being loaded.

Was it helpful?

Solution

As per @Dismissile suggestion upgrade your data access layer to EF6.

In EF6 the DbExtensions class still exists but has been renamed (see https://entityframework.codeplex.com/wikipage?title=Design%20Meeting%20Notes%20-(March%2021%2C%202013) to QueryableExtensions (see docs http://msdn.microsoft.com/en-us/library/system.data.entity.queryableextensions(v=vs.113).aspx).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top