Grandchild BLB getting reset on save question

Grandchild BLB getting reset on save question

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


TheEld posted on Thursday, June 18, 2009

I have the following...

GrandChildBLB : BusinessListBase<GrandChildBLB, GrandChildBB> {}

GrandChildBB : BusinessBase<GrandChildBB> {}

RootBLB : BusinessListBase<RootBLB, ChildBB> {}

ChildBB : BusinessBase<ChildBB>
{
    private static PropertyInfo<GrandChildBLB> GrandChildBLBProperty = RegisterProperty(new PropertyInfo<GrandChildBLB>("GrandChildBLB", "GrandChildBLB"));

    public GrandChildBLB GCBLB
    {
        get { return GetProperty(GrandChildBLBProperty _ValueProperty); }
        set { SetProperty(Status_GrandChildBLBProperty , value); }
    }


   Private vod Child_Insert()
   {
      FieldManager.UpdateChildren();  
   }

   Private vod Child_Update()
   {
      FieldManager.UpdateChildren();  
   }
}

 

So now in the GUI I would have something like RBLB = RBLB.Save().  And all of the Child_Insert()'s and Child_Udates()'s within both ChildBB and GrandChildBB are getting called just fine.  My question is...  Don't I need somewhere within ChildBB something like GCBLB = ???; so that that BLB gets reset to a new list just like the higher level BLB gets reset to a new list?  Or is is magically being reset within FieldManager.UpdateChildren()?

 

Thanks in advance for your help

Copyright (c) Marimer LLC