/// <summary> /// Creates a new <see cref="MasterClubRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="MasterClubRecord" /> object instance. /// </returns> public MasterClubRecord Clone() { MasterClubRecord record = new MasterClubRecord(); 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.OrgId = this.OrgId; record.DaysNo = this.DaysNo; record.Period = this.Period; record.MembVal = this.MembVal; record.ExpDate = this.ExpDate; record.Contact = this.Contact; record.MembNo = this.MembNo; record.StartDate = this.StartDate; record.FinishDate = this.FinishDate; record.PayDate = this.PayDate; record.TotPoints = this.TotPoints; record.RemainPts = this.RemainPts; record.Status = this.Status; record.Notes = this.Notes; record.Type = this.Type; record.UsedValue = this.UsedValue; record.Restrict = this.Restrict; record.Delegate = this.Delegate; record.PlId = this.PlId; record.ProdId = this.ProdId; record.ProdType = this.ProdType; record.StopFlag = this.StopFlag; record.NamedUsers = this.NamedUsers; record.CurrencyType = this.CurrencyType; record.CenId = this.CenId; record.MepId = this.MepId; record.NamedBookers = this.NamedBookers; record.Name = this.Name; record.UniqueRef = this.UniqueRef; return(record); }
/// <summary> /// Indicates whether the current <see cref="MasterClubRecord" /> instance is equal to another <see cref="MasterClubRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="MasterClubRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(MasterClubRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify()); result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify()); result = result && (this.DaysNo == that.DaysNo); result = result && (this.Period == that.Period); result = result && (this.MembVal == that.MembVal); result = result && (this.ExpDate == that.ExpDate); result = result && (this.Contact.TrimOrNullify() == that.Contact.TrimOrNullify()); result = result && (this.MembNo.TrimOrNullify() == that.MembNo.TrimOrNullify()); result = result && (this.StartDate == that.StartDate); result = result && (this.FinishDate == that.FinishDate); result = result && (this.PayDate == that.PayDate); result = result && (this.TotPoints == that.TotPoints); result = result && (this.RemainPts == that.RemainPts); result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify()); result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify()); result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify()); result = result && (this.UsedValue == that.UsedValue); result = result && (this.Restrict == that.Restrict); result = result && (this.Delegate.TrimOrNullify() == that.Delegate.TrimOrNullify()); result = result && (this.PlId.TrimOrNullify() == that.PlId.TrimOrNullify()); result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify()); result = result && (this.ProdType.TrimOrNullify() == that.ProdType.TrimOrNullify()); result = result && (this.StopFlag == that.StopFlag); result = result && (this.NamedUsers == that.NamedUsers); result = result && (this.CurrencyType.TrimOrNullify() == that.CurrencyType.TrimOrNullify()); result = result && (this.CenId.TrimOrNullify() == that.CenId.TrimOrNullify()); result = result && (this.MepId.TrimOrNullify() == that.MepId.TrimOrNullify()); result = result && (this.NamedBookers == that.NamedBookers); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.UniqueRef.TrimOrNullify() == that.UniqueRef.TrimOrNullify()); return(result); }