Muds
Muds

Reputation: 4116

Update Model from Database reverts manual changes made to .context file

we recently updated from EF4 to EF6, then I read about .context.tt and .tt files. Added them to the system things look fine but

System.Data.Object

was to be changed to

System.Data.Entity.Core.Object

I thought this would be one time effort but everytime we update model from database, we have to rename the namespaces, its not difficult but annoying.

Did we miss something while upgrading to EF6 or are we using .context.tt files in wrong way ?

Upvotes: 0

Views: 81

Answers (1)

Steve Greene
Steve Greene

Reputation: 12324

The templates were upgraded to use the new namespaces, but you may need to manually update them. See this link Upgrade from Entity Framework 5 to 6

Upvotes: 1

Related Questions