none
ASP .Net Entity Framework .tt Files Not Nesting Under .edmx RRS feed

  • Question

  • I'm running an ASP .NET (v4.5) Web Site Project under VS 2012 Update 2. When I create a new entity model (.edmx) under the App_Code folder, nested under the .edmx file is only the .Designer.cs and the .edmx.diagram files. The associated .tt files are not nested. I think this is why, when I save the model, the T4 templates are not automatically transformed, even though that option is specified in the model properties.

    Any ideas how to get this working? I do not want to mess with the DependentUpon tag in the project file, as we do not want to put the project file under source control.

    Tuesday, April 30, 2013 2:54 AM

All replies

  • do a new sampling project using EF, recreate the same/intended edmx.

    once done, compare the csproj of this sampling project with your original csproj, you should be able to find the differences, then do a direct edit over your csproj, do a backup 1st.


    • Edited by Kelmen Tuesday, April 30, 2013 4:23 AM
    Tuesday, April 30, 2013 4:23 AM
  • Unfortunately I cannot do that, since this is a Web Site Project and as such does not have a project file. Any other ideas?

    Thanks

     
    Wednesday, May 1, 2013 1:37 AM