When upgrading from EF5 to EF6 should I replace System.Data.Objects?

entity-framework

Question

I am trying to replace EF5 with EF6 A lot of my code is giving type reference errors, Should I replace System.Data.Objects with System.Data.Entity.Core.Objects in my references?

[Update] Also do I replace System.Data.EntityState with System.Data.Entity.EntityState ?

1
28
5/25/2013 8:11:18 AM

Accepted Answer

A quote from the updating guide;

The general rule for namespace changes is that any type in System.Data.* is moved to System.Data.Entity.Core.*. In other words, just insert Entity.Core. after System.Data.

In other words, yes, you should update your references to the new namespace.

25
5/27/2013 12:17:03 PM

Popular Answer

Yes... You should update your references as follow:

System.Data.Objects -> System.Data.Entity.Core.Objects
System.Data.EntityState -> System.Data.Entity.EntityState


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