updating and deleting objects and collections when updating or deleting their parents

updating and deleting objects and collections when updating or deleting their parents

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


billysixshot posted on Friday, October 17, 2008

Hi, I don't have any problems updating or deleting child objects on a parent object it the child object is a collection. I do have problems updating or deleting child objects on a parent object if the child object is simply an object and not a collection.

ex:

class classParent

{

prop1ChildList

}

 

vs.

class classParent

{

prop1ChildObj

}

 

classParent.delete();

classParent.Save();

In the 2nd ex. the save for the childObj doesn't happen.

 

 

 

 

dlabar replied on Monday, October 20, 2008

Are you getting any sort of error, or is it just not working?

Copyright (c) Marimer LLC