Problem with Remove() and Clone()

Problem with Remove() and Clone()

Old forum URL: forums.lhotka.net/forums/t/1096.aspx


DanEssin posted on Thursday, August 31, 2006

I've got a business object with 2 internal lists of children and the instance has 4 children in one list. If I remove a child object and then clone the entire bo, the deleted childe has the IsNew property set to true. This means that doing a save will not delete the supposedly deleted child.

The reason that I was trying this is that doing a remove of the child on the original bo followed by an applyEdit() and a Save() never triggers the delete logic because the EditLevelAdded and the EditLevel are both 0.

This bo is bound to a binding source and a devexp grid.

Any thoughts on how to resolve either or both of these issues?

Copyright (c) Marimer LLC