Page 1 of 1

Handmade associations deleted when updating?

Posted: Fri 20 Jan 2012 14:23
by hesseldehaan
Hi,

when I perform an Model update (right click -> Update model from database) all associations, that I have modified or added manually, disapear.

How can I perform an update / add table and still keep my associations?

Posted: Fri 20 Jan 2012 17:03
by StanislavK
The 'Update from Database' wizard drops the associations for which it couldn't find corresponding foreign keys in the database. You can, however, cancel dropping some of them at the 'Choose change action' step of the wizard: select the dependent table and clear the check box(es) at the 'ForeignKey (Dropped)' nodes.

Please tell us if this helps.