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

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 ?

Answers


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.


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

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

One more change if you use DbGeography:

System.Data.Objects     =>     System.Data.Entity.Core.Objects
System.Data.EntityState    =>     System.Data.Entity.EntityState
System.Data.Spatial.DbGeography    =>   System.Data.Entity.Spatial.DbGeography 

Need Your Help

Property "RegistrationForm.firstname" is not defined.

yii yii-extensions

I'm using the yii-user extension version 0.3, while trying to customize my registration form, i get this error

Memory leak node js

node.js memory express

I have a memory leak on my nodejs application. In order to resume the purpose of the application, it's an api called by an iOS application and a backoffice to administrate some content.