inheritance issue with "MarkOld"inheritance issue with "MarkOld"
Old forum URL: forums.lhotka.net/forums/t/4241.aspx
ReadOnlyChild posted on Friday, January 25, 2008
Hello ,
I have an issue with a BO that goes like this:
I've inherited an object from another BO that extends BusinessBase
(using 2.1.4 fx of CSLA)
Company : Customer
Customer : BusinessBase<Customer>
when I call ApplyEdit (for an update, previously fetched instance) on Company, it does all the dataportal stuff, on the SimpleDataPortal.Update, the "MarkOld" method is called by reflection on Company,
but in UI,right after the ApplyEdit() returns, the IsDirty flag is "true"
any ideas where I can look for the solution ?
JoeFallon1 replied on Sunday, January 27, 2008
Are you updating the BO variable in the UI?
e.g. myBO = myBO.Save
Or are you just calling
myBO.save?
The first style is correct.
Joe
Copyright (c) Marimer LLC