Why does Save() return new instance.

Why does Save() return new instance.

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


dctc42 posted on Wednesday, January 14, 2009

I've been wondering why this is done by csla? What's the value?

I'm only using csla locally, is this needed for remote data portal?

Thanks

RockfordLhotka replied on Wednesday, January 14, 2009

This is explained in chapters 1 and 2 of the Expert Business Objects book.

Originally it was required by a remote data portal. However, it turns out to be useful for a local data portal as well, for a couple different reasons.

 

JoeFallon1 replied on Thursday, January 15, 2009

Rocky,

I completely agree. We have been using CSLA for many years now but our testing of "remoting" was not very complete. We thought that we had coded everything the "right way" but when we upgraded to 3.6 we got hit with a handful of subtle bugs that were exposed due to AutoCloneOnUpdate for the local dataportal. This is a good thing! Now when we fix them and continue coding we will knwo that the remte data portal will work reliably and we do not need a separate test environment to full test it - it is always being tested now.

Joe

 

 

Copyright (c) Marimer LLC