child properties has changed

child properties has changed

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


BunnyStrider posted on Wednesday, November 17, 2010

I need to know whenever a child's property has changed, what value it changed to and the name of the property.  Is there any way to iterate over a child's properties and see if each property is dirty or not.  

Right now I only know if a child is dirty, is there a way to know if a property of the child is dirty?

RockfordLhotka replied on Wednesday, November 17, 2010

By default CSLA only tracks whether an object is dirty, not each property. Jason Bock wrote a blog post describing how to extend CSLA 3.8 and higher to track this at a property level, so you could do that.

Also, you might use the ChildChanged event/override to monitor child object's as they change - because the parameters to that event/override provide you with the name of the property that was changed.

Copyright (c) Marimer LLC