Best way to update a table

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Fortis
Posts: 14
Joined: Sat 17 Oct 2009 23:35

Best way to update a table

Post by Fortis » Fri 22 Jan 2010 11:33

What is the suggested/encouraged way to update a changed table (ie a table that has 10 new columns/changed column names)?
This happens quite frequently to me and at the moment I dont have a solution that is not painfully cumbersome...
(and I know schemaupdates from the database is a planned feature, but in the meantime...)

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 22 Jan 2010 14:11

At the moment I recommend you to drop the table on the designer (if you are using Entity Framework,
don't forget the Store part of the model) and add it again.
One more solution is to manually update the model in design time, but it is also time-consuming.

Fortis
Posts: 14
Joined: Sat 17 Oct 2009 23:35

Post by Fortis » Fri 22 Jan 2010 14:38

:cry:
Dropping the table is not really a good option, since you have to redo all work you did on the set (like renaming entities/association and everything else). That process is also errorprone (since we are humans).

Any ETA on the updatefeature? I would even settle with an "Only add new columns not in the current storagemodel" :-)

Post Reply