ObjectFactory - MarkOld(obj) on BusinessListBase objectObjectFactory - MarkOld(obj) on BusinessListBase object
Old forum URL: forums.lhotka.net/forums/t/6655.aspx
Kevin Fairclough posted on Monday, March 23, 2009
Hi All,
If I call MarkOld(blbObj) in my ObjectFactory Update which has just saved the contents of a BusinessListBase do I need call MarkOld(foreach_content_bb) or will MarkOld scan the object graph and do it for me. From what I have seen I need to manually cascade the MarkOld(..)
Csla 3.6.1
TIA
Kevin
RockfordLhotka replied on Monday, March 23, 2009
You have to manually cascade things like MarkOld(), MarkNew(), etc.Kevin Fairclough replied on Tuesday, March 24, 2009
ThanksKevin Fairclough replied on Tuesday, March 24, 2009
I also have to manually clear DeletedList, is this correct?
RockfordLhotka replied on Tuesday, March 24, 2009
Yes – you must manually do everything.
In 3.6.2 there are more methods on the ObjectFactory base class,
and so it should be possible to load/save all object stereotypes now.
Rocky
From: Kevin Fairclough
[mailto:cslanet@lhotka.net]
Sent: Tuesday, March 24, 2009 7:14 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] ObjectFactory - MarkOld(obj) on
BusinessListBase object
I also have to manually clear DeletedList, is this correct?
Kevin Fairclough replied on Tuesday, March 24, 2009
Cheers Rocky.
When you're new to this you don't appreciate what "everything" is until you get to it!
RockfordLhotka replied on Tuesday, March 24, 2009
It is definitely a choice.
The DataPortal_XYZ approach is more automated and so is simpler.
The ObjectFactory approach is more flexible, but isn’t
quite as simple, and requires that you understand more about the object
lifecycle.
Rocky
Copyright (c) Marimer LLC