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

  • Home
  • SEARCH
  • 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 9192309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:53:26+00:00 2026-06-17T20:53:26+00:00

I just started using EF5. I created a MSSQL database, then I created the

  • 0

I just started using EF5. I created a MSSQL database, then I created the model (edmx) file and then used the “Add code generation item” to create EF5 dbcontext classes.

Whenever I alter my database (adding a column or changing a datatype) I see that “update model from database” doesn’t work and I need to delete and recreate the model.
that’s ok for me but what happens to my DbContext classes generated from the model.tt template file? do I have to generate all the DbContext classes again also?

what’s the correct way to work with a database-first environment and keep the .edmx model and the DbContext classes in sync with the database?

  • 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-17T20:53:27+00:00Added an answer on June 17, 2026 at 8:53 pm

    After you update your model from database, try to Run Custom Tool the Entity Model, works and tested for me.

    from Entity Model → Right Click → Run Custom Tool

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

Sidebar

Related Questions

I just started using rapidxml. I 1st create an xml file to read from.
I just started using/learning Python and have some questions. I have a text file
I just started using the new Eclipse 4.2 (Juno) Null Analysis. On code like
I just started using PrimeFaces and cannot figure what is wrong with my code.
I just started using PyGI (on Ubuntu Natty), although I have never used pygtk
Just started using CodeIgniter, loving it. Having enabled the database to be one of
I just upgraded my MVC4 project to .NET 4.5 and EF5 and started using
I just started using the Eclipse IDE and for a first test I created
Just started using JAX-WS. I created service class and DAO class. My service is
I just started using emacs after having used vi for a long time. :)

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.