Be careful when you upgrade to Entity Framework 6, because it introduces some breaking changes. Entity Framework 6 is the first version that is not tied to the .NET framework directly. This allows Entity Framework to evolve independently from the .NET framework. Unfortunaltey this couldn’t be done without introducing some breaking changes. From the MSDN site : Types like ObjectContext that were previously in System.Data.Entity.dll have been moved to new namespaces. This means you may need to update your using or Import directives to build against EF6. 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. For example: System.Data.EntityException => System.Data. Entity.Core. EntityException System.Data.Objects.ObjectContext => System.Data. Entity.Core. Objects.ObjectContext System.Data.Objects.DataClasses.RelationshipManager => ...