/// <summary> /// Indicates whether the current <see cref="EventProductRecord" /> instance is equal to another <see cref="EventProductRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="EventProductRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(EventProductRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.EventId.TrimOrNullify() == that.EventId.TrimOrNullify()); result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify()); result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify()); result = result && (this.Qty == that.Qty); result = result && (this.DelegateQty == that.DelegateQty); result = result && (this.BomId.TrimOrNullify() == that.BomId.TrimOrNullify()); result = result && (this.Predeliv == that.Predeliv); return(result); }
/// <summary> /// Creates a new <see cref="EventProductRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="EventProductRecord" /> object instance. /// </returns> public EventProductRecord Clone() { EventProductRecord record = new EventProductRecord(); record.Id = this.Id; record.AddBy = this.AddBy; record.AddDate = this.AddDate; record.ModBy = this.ModBy; record.ModDate = this.ModDate; record.EventId = this.EventId; record.ProdId = this.ProdId; record.Notes = this.Notes; record.Qty = this.Qty; record.DelegateQty = this.DelegateQty; record.BomId = this.BomId; record.Predeliv = this.Predeliv; return(record); }