7

Withn EF4, when using the Update Model from the Database wizard, it updates all tables that were previously imported and I don't see a way to include only those that I need.

Is it possible to update only specific tables and not all?

neonknight
  • 121
  • 2
  • 5

1 Answers1

5

Sadly no. Refresh updates all of the mapped tables. You can choose not to import new ones, but EF thinks keeping its model and the database in sync is a good idea. I guess you could dive into the XML behind, grab copies of what you don't want to change, and then put them back afterwards, but thats beyond my experience.

EDIT: From the possible duplicate question above, an external tool http://www.huagati.com/dbmltools/ is referenced which looks like it would do the job.

Andiih
  • 12,285
  • 10
  • 57
  • 88
  • 2
    This is true, the UI is confusing. I've actually done this: update from the model, then using my source-control I see what lines have changed and revert any I don't want. It's very easy to mess up the file, but if you're careful you can pick which changes you want. Not ideal, but possible. – rocketmonkeys Feb 08 '12 at 16:04
  • 1
    I do the same, but it sucks :( – Ignacio Soler Garcia Sep 03 '12 at 13:32