net MVC 2 to asp.net MVC 4 without any problem.
And then, I tried to upgrade entity framework 4.0 to entity framework 6.
The result is not good. I have about 15000 error.
I have this error appear several times
The type or namespace name 'ComplexObject' could not be found
An other error
Error 14331 The type or namespace name 'EdmComplexTypeAttribute' could not be found (are you missing a using directive or an assembly reference?)
Error 5460 The type or namespace name 'EdmEntityTypeAttribute' could not be found (are you missing a using directive or an assembly reference?)
I don't know where to begin. Any Idea ?
You need to update templates too. In EF6 some types were moved to different namespaces and the code that is being generated is using namespaces from EF4/5. You can get T4 templates for ObjectContext on VS Gallery. Also take a look at this article about moving your app to EF6 from an earlier EF version.