Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 668
neonknight Avatar asked Jun 10 '11 17:06

neonknight


1 Answers

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.

like image 90
Andiih Avatar answered Sep 24 '22 20:09

Andiih