Hi everyone,
Please show me how to implemement Deferred Deletion on Editable Child Object.
In VB2008, Rocky did mention how to implement this method on Root object (p. 178), but I could not find the same technique on Child object.
Thanks in advance.
The only way to delete a child object is through deferred deletion. The child object is typically contained in a BusinessListBase, so you do this:
_myCollection.Remove(myChild)
That marks the child for deletion and removes it from the active list. When you save the root object, that child's Child_DeleteSelf() will be invoked, so you can actually do the delete in the database.
Hi Rocky,
Remove method works very nicely.
Thank you very much for sharing your knowledge.
Copyright (c) Marimer LLC