neonknight
neonknight

Reputation: 121

Entity Framework 4 - Refresh specific tables when updating

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?

Upvotes: 7

Views: 5528

Answers (1)

Andiih
Andiih

Reputation: 12413

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.

Upvotes: 5

Related Questions