Question on DataPortal.Update()

Question on DataPortal.Update()

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


JasonRShaver posted on Monday, August 25, 2008

So I have a object and want to save it.  When I call the .Save() method, it calls DataPortal.Update(this).  That call has this bit of code in it:

try

{

// when using local data portal, automatically

// clone original object before saving

obj = ((ICloneable)obj).Clone();

result = proxy.Update(obj, dpContext);

}

catch (Server.DataPortalException ex)

 

Around line 348.  The issue is that CSLA CE does not seem to support the ICloneable interface on BusinessBase.  How are you supposed to save stuff with CSLA CE then?  For now I just took out the clone, but I was hoping someone could let me know what I am doing wrong there.

 

Copyright (c) Marimer LLC