Child Reference To Parent for RuleChild Reference To Parent for Rule
Old forum URL: forums.lhotka.net/forums/t/7838.aspx
xAvailx posted on Wednesday, October 21, 2009
CSLA v3.6.1.0
Have the following hierarchy:
Parent (EditableRoot)
> Child (EditableChild)
My child class is a managed field. I was hoping with the managed properties it would automagically set my parent reference, but that doesn't appear to be the case. No big deal, I can use the SetParent method. My question is with the managed fields, where do I need to worry about setting the parent reference for my child object? I couldn't find in the wiki or a concrete sample in the forums.
This is the other example with using an internal SetParent method:
http://forums.lhotka.net/forums/thread/5510.aspx
Thx.xAvailx replied on Wednesday, October 21, 2009
Nevermind, the parent wasn't set during the DataPortal Create, but it is set when a rule is triggered. Please disregard...although I will post a question related to parent/child and rules soon.
Thx!Copyright (c) Marimer LLC