I have what seems to be a very simple scenario, but for whatever reason can't get it to work correctly.
I defined parent/child relationship between 2 BOs; 1) setup ParentRelationShip property in BO designer by PK_Id to FK_Id and 2) Dropped 2 objects on the form and set ParentObject property.
I want to loop through parent objects and inner loop children of each parent. But I am getting all "Children" objects for each parent, instead of true children as defined by IDs. What am I missing?
Also is there way to get strongly typed Child object from parent instead of: parentBO.ChildBusinessObjects[0];
here's relevant code:
Thank you for your help.
You need to have the flexibility to pull back all pertinent child data at once and then filter off of the selected parent record (one big trip to the server), or just pull back the child data relating to current record every time a different parent is selected (many small trips to the server.) As outlined in my earlier post above, either one could be more efficient or desirable in different situations.