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 9237643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:34:47+00:00 2026-06-18T07:34:47+00:00

If I add or change a field in my database, how to I update

  • 0

If I add or change a field in my database, how to I update my .edmx file? Do I run “update model from database” and Do I need to delete the .tt files and run a new “Add code generation item?”

Do I need to make any other changes to my MVC project files for it to be up to date with
the database changes?

  • 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-18T07:34:48+00:00Added an answer on June 18, 2026 at 7:34 am

    Lots of questions!

    Yes you can run update model – sometimes (if you rename a field) you will have to amend the model by hand – removing the old field OR you can delete the whole entity before you hit update model.

    You don’t need to delete the .tt files and run the add code generation bit.

    You may need to right click on the .tt and choose “Run custom tool” to tell the .tt file to regenerate your model classes.

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

Sidebar

Related Questions

I need to change my web.config file and add the MaxReceivedMessageSize property in my
I have an edmx file and I changed a table in my database. I
I've module and I've update to alter database table, shortly I need to do
I have an HTML table showing my mySQL database. I frequently need to change
I want to add an Update button to my database table in my gridview.
There is a need from a customer to log every data change to a
I have a model for a User generated by EF from an existing database:
I'm building an application where users can add, edit and delete users from the
List<Foo> fooList = Session[foo] as List<Foo>; fooList.Add(bar); Does the call to Add() change the
Using JQuery it possible to clone a Div like this and change add a

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.