Possible bug in CSLA\BusinessBase.cs version 4.0....

Possible bug in CSLA\BusinessBase.cs version 4.0....

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


cwinkelmann posted on Wednesday, December 28, 2011

Please correct me if I'm wrong. It seems the method signature doesn't add functionality as the parameter is not used to the subsequent call....  Simply does not match the documentation...

 

  [Serializable()]
  public abstract class BusinessBase<T> :
    Core.BusinessBase, Core.ISavable where T : BusinessBase<T>
  {

 

 

 

    /// <summary>
    /// Starts an async operation to save the object to the database.
    /// </summary>
    /// <param name="forceUpdate">
    /// If <see langword="true"/>, triggers overriding IsNew and IsDirty.
    /// If <see langword="false"/> then it is the same as calling Save().
    /// </param>
    /// <remarks>
    /// This overload is designed for use in web applications
    /// when implementing the Update method in your
    /// data wrapper object.
    /// </remarks>
    public void BeginSave(bool forceUpdate)
    {
      this.BeginSave(false, null);
    }

JonnyBee replied on Wednesday, December 28, 2011

Added to bugtracker: http://www.lhotka.net/cslabugs/edit_bug.aspx?id=1005

Checked in to trunk now. Thanks.

Copyright (c) Marimer LLC