/// <summary> /// Indicates whether the current <see cref="SaqStepRecord" /> instance is equal to another <see cref="SaqStepRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="SaqStepRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(SaqStepRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify()); result = result && (this.Visibility == that.Visibility); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Desc.TrimOrNullify() == that.Desc.TrimOrNullify()); result = result && (this.ResultSizeOpt == that.ResultSizeOpt); result = result && (this.ResultSize == that.ResultSize); result = result && (this.InUse == that.InUse); result = result && (this.OrgOnly == that.OrgOnly); result = result && (this.Locked == that.Locked); result = result && (this.BookOnly == that.BookOnly); result = result && (this.LinkDefault.TrimOrNullify() == that.LinkDefault.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="SaqStepRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="SaqStepRecord" /> object instance. /// </returns> public SaqStepRecord Clone() { SaqStepRecord record = new SaqStepRecord(); record.Id = this.Id; record.AddBy = this.AddBy; record.AddDate = this.AddDate; record.ModBy = this.ModBy; record.ModDate = this.ModDate; record.ProleId = this.ProleId; record.Visibility = this.Visibility; record.Name = this.Name; record.Desc = this.Desc; record.ResultSizeOpt = this.ResultSizeOpt; record.ResultSize = this.ResultSize; record.InUse = this.InUse; record.OrgOnly = this.OrgOnly; record.Locked = this.Locked; record.BookOnly = this.BookOnly; record.LinkDefault = this.LinkDefault; return(record); }