Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8637007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:22:08+00:00 2026-06-12T10:22:08+00:00

At work we just upgraded to Entity Framework 5. Our EDMX file now has

  • 0

At work we just upgraded to Entity Framework 5. Our EDMX file now has a couple other nodes beneath it:

EntityContainer.Context.tt

which contains the generated DbContext object and

EntityContainer.tt

which contains the entities themselves.

For a short period, adding an entity in EF was automatically regenerating the tt (T4 Templates) when we would save the EDMX file. Now all of a sudden we have to right-click the T4 templates and select “Run Custom Tool” to get them to regenerate the .cs files for the context or entities.

Any ideas how this might have happened?

Update

In the EDMX the property “Transform Related Text Templates On Save” is set to true and the problem is still happening.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:22:09+00:00Added an answer on June 12, 2026 at 10:22 am

    Is your EDMX in a sub-folder of your project? If so, the good news is that you didn’t do anything wrong. The bad news is that this is a known issue…check my blog post about it. http://thedatafarm.com/blog/data-access/watch-out-for-vs2012-edmx-code-generation-special-case/.

    Two work arounds for the time being:

    1) move the edmx into the main project folder
    2) explicitly force the code gen as needed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We just upgraded our compiler to gcc 4.6 and now we get some of
Just upgraded to rails 3.1 and now my form_tag doesn't work anymore, I don't
At work, we just upgraded from VS2005 to 2010. To this point, we've only
I just upgraded to .NET 4 from 3.5 and now am having issues getting
I have just upgraded a couple of sites from an earlier release of SS3
We just upgraded to Rails 3. We replaced the default rails.js file with the
I just upgraded one of our web apps to ASP.NET 4.0. It is using
I've got an .net 2.0 web forms site that has just been upgraded to
this code in my plugin used to work just fine: jQuery('#embedded_obj', context).get(0).getVersion(); and the
I have some tabs using jQuery UI which work just fine, but I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.