At work, we just upgraded to Entity Framework 5. Our EDMX file now has a couple of other nodes:
EntityContainer.Context.tt
which contains the generated DbContext object and
EntityContainer.tt
which contains the entities themselves.
For a short period of time, adding an object to EF automatically restored tt (T4 Templates) when we saved the EDMX file. Now we suddenly need to right-click on the T4 templates and select βRun Custom Toolβ so that they can restore .cs files for context or entities.
Any ideas how this could happen?
Update
In EDMX, the "Transform Related Text Templates On Save" property is set to true, and the problem is still happening.
source share