ERLB and OnChildChanged in parent (CSLA Light)

ERLB and OnChildChanged in parent (CSLA Light)

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


Jack posted on Tuesday, November 24, 2009

I had the following:

ParentBO
    ERLChildBO listXyz

ParentBo.OnChildChanged()
{   do something generic when list.Child.propertyXyz changed}

I now have:

ParentBO
    ERLBChildBO listXyz

I just wanted to confirm that switching from ERL to ERLB means that the OnChildChanged will no longer fire in my ParentBO when the root objects in the list change.  It makes sense that they would since they are not child objects...  I just didn't expect it when my code no longer fired.  I'm using 3.8.1

Thanks

jack

RockfordLhotka replied on Tuesday, November 24, 2009

ERLB is not designed to ever be a child. ERLB is a root object containing root objects.

I have no idea what issues you might encounter when trying to make an ERLB act as a child of another object, because that's outside the design parameters for the stereotype.

Copyright (c) Marimer LLC