When Parent.Save() should it apply Save to Children


Author
Message
Leonard P.
Leonard P.
StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)StrataFrame Novice (83 reputation)
Group: Awaiting Activation
Posts: 65, Visits: 306
Hi,



My form has parent object and 2 children objects (all the relationships set correctly, etc)

On parent BO Navigated event I fill children by Parent PK (childBo.FillByParentPK(parentBO.PKID); ).



But there was a problem parentBO.Save was executed (in edit mode); it was only saving parent's changes. I thought .Save on parent should propagate to children?



So, I added:



parentBO.Save();

Child1BO.Save();

Child2BO.Save();





It works now, but I just want to make sure I am doing the right thing.



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search