CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

Question on DataPortal.Update()

Last post 08-25-2008, 8:44 PM by JasonRShaver. 0 replies.
Sort Posts: Previous Next
  •  08-25-2008, 8:44 PM 25727

    Question on DataPortal.Update()

    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.

     

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems