About Question enthuware.oce-jpad.v6.2.466 :
Posted: Sun Mar 18, 2012 9:09 am
I doubt the code in question will work. Reason: in most cases foreign key constraint violation will not allow to delete ACCOUNT table row if ADDRESS row refers to it.
Developer needs set DDL for foreigh key on ADDRESS as:
Another option (without DDL hacks) set Address proeprty to NULL on Account (this will set NULL to ADDRESS table FK), and then delete Account.
Developer needs set DDL for foreigh key on ADDRESS as:
Code: Select all
ON DELETE SET NULL