/// <summary> /// Indicates whether the current <see cref="SalesChannelRecord" /> instance is equal to another <see cref="SalesChannelRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="SalesChannelRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(SalesChannelRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify()); result = result && (this.Number == that.Number); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Ref.TrimOrNullify() == that.Ref.TrimOrNullify()); result = result && (this.PlId.TrimOrNullify() == that.PlId.TrimOrNullify()); result = result && (this.State == that.State); result = result && (this.CutoffTime == that.CutoffTime); result = result && (this.Timeout == that.Timeout); result = result && (this.NoBook == that.NoBook); return(result); }
/// <summary> /// Creates a new <see cref="SalesChannelRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="SalesChannelRecord" /> object instance. /// </returns> public SalesChannelRecord Clone() { SalesChannelRecord record = new SalesChannelRecord(); record.Id = this.Id; record.Lock = this.Lock; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.RcvDate = this.RcvDate; record.RcvFrom = this.RcvFrom; record.Number = this.Number; record.Name = this.Name; record.Ref = this.Ref; record.PlId = this.PlId; record.State = this.State; record.CutoffTime = this.CutoffTime; record.Timeout = this.Timeout; record.NoBook = this.NoBook; return(record); }