Entity DataSource not working with Entity Framework 6 Upgrade

entitydatasource entity-framework entity-framework-6

Question

The Entity Datasource controls were giving me a ton of compile time build issues when I recently converted our Webforms application from EF 4.4 to EF6. When trying to access the context object, I typically encounter the following errors:

e.Context

I followed the identical instructions provided in: http://entityframework.codeplex.com/wikipage?title=Updating%20Applications%20to%20use%20EF6.

The error message that appears is as follows:

1) Module System.Data.Entity. version="4.0.0.0" should be referenced

2) Cannot case expression of type System.Data.Objects.ObjectContext to type ObjectContext (After explicitly type casting to System.Data.Entity.Core.Objects.ObjectContext)

Can anyone assist in fixing this?

1
9
1/19/2016 9:43:01 AM

Accepted Answer

ZZZ_tmp
13
8/1/2014 2:51:56 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow