Business and Bindable base

Business and Bindable base

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


stephenpatten posted on Wednesday, December 05, 2007

Hello,

I have just started maintaining code that uses parts of CSLA, having lost my copy of the book , I'm trying to understand the proper implemetaion details of marking a business oject as dirty though the dadbinding process. I would think that the default behavor of the binding mechinsim would handle setting the dirty flag to true, but as far as I can tell when I edit an object the flag is never being set.

 

Thank you,

Stephen

JoeFallon1 replied on Thursday, December 06, 2007

In the Property Set you have to call PropertyHasChanged("myPropertyName").

This calls into the framework and sets IsDirty=True (among other things.)

In older versions of CSLA it was a different style - but same idea.

Joe

Copyright (c) Marimer LLC