StrataFrame Forum

BO.IsDirty return wrong value once error occurred during save

http://forum.strataframe.net/Topic20974.aspx

By Chan - 12/2/2008

Hi,

I have problem that, whenever that is exception happened/thrown during save (after BusinessLayer.TransactionBegin() is called), BO.IsDirty would always return false (due to _IsSavedOnTransaction is true) even though BusinessLayer.TransactionRollback() is called after that. I tried to call ChangesExistOnCurrentDataTable() manually and it return true to indicate that are some dirty records.



After some debugging, I found that, BO would call ResetIsSavedOnTransactionFlagOnBusinessObjects(DataSourceKey, TransactionKey) in BusinessLayer.TransactionCommit() but not in BusinessLayer.TreansactionRollback().



Is it a bug? If not, how to solve it?



Thank you
By Trent L. Taylor - 12/3/2008

Look at this post:

http://forum.strataframe.net/FindPost20985.aspx