/// <summary> /// Creates a new <see cref="CountryRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="CountryRecord" /> object instance. /// </returns> public CountryRecord Clone() { CountryRecord record = new CountryRecord(); record.Id = this.Id; record.AddBy = this.AddBy; record.AddDate = this.AddDate; record.ModBy = this.ModBy; record.ModDate = this.ModDate; record.RcvFrom = this.RcvFrom; record.RcvDate = this.RcvDate; record.Name = this.Name; record.Format = this.Format; record.Rep = this.Rep; record.Area = this.Area; record.RepId = this.RepId; record.Rep1Id = this.Rep1Id; record.Rep2Id = this.Rep2Id; record.PostcodeFlag = this.PostcodeFlag; record.OrgType = this.OrgType; record.ProductGroup = this.ProductGroup; record.Postcode = this.Postcode; record.Industry = this.Industry; record.TerrId = this.TerrId; record.Lock = this.Lock; record.County = this.County; record.VatType = this.VatType; record.Language = this.Language; record.Currency = this.Currency; record.Userchar1 = this.Userchar1; record.Userchar2 = this.Userchar2; record.Usernum1 = this.Usernum1; record.Usernum2 = this.Usernum2; record.Notes = this.Notes; record.Euro = this.Euro; record.CountryCode = this.CountryCode; record.Town = this.Town; record.PcodeLu = this.PcodeLu; record.LinePos = this.LinePos; record.VatCode = this.VatCode; record.VatCountryCode = this.VatCountryCode; record.MailstringOrder = this.MailstringOrder; record.MailstringDisplay = this.MailstringDisplay; record.MailstringNewline = this.MailstringNewline; record.CountryCode2 = this.CountryCode2; return(record); }
/// <summary> /// Indicates whether the current <see cref="CountryRecord" /> instance is equal to another <see cref="CountryRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="CountryRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(CountryRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.Format.TrimOrNullify() == that.Format.TrimOrNullify()); result = result && (this.Rep.TrimOrNullify() == that.Rep.TrimOrNullify()); result = result && (this.Area.TrimOrNullify() == that.Area.TrimOrNullify()); result = result && (this.RepId.TrimOrNullify() == that.RepId.TrimOrNullify()); result = result && (this.Rep1Id.TrimOrNullify() == that.Rep1Id.TrimOrNullify()); result = result && (this.Rep2Id.TrimOrNullify() == that.Rep2Id.TrimOrNullify()); result = result && (this.PostcodeFlag.TrimOrNullify() == that.PostcodeFlag.TrimOrNullify()); result = result && (this.OrgType.TrimOrNullify() == that.OrgType.TrimOrNullify()); result = result && (this.ProductGroup.TrimOrNullify() == that.ProductGroup.TrimOrNullify()); result = result && (this.Postcode.TrimOrNullify() == that.Postcode.TrimOrNullify()); result = result && (this.Industry.TrimOrNullify() == that.Industry.TrimOrNullify()); result = result && (this.TerrId.TrimOrNullify() == that.TerrId.TrimOrNullify()); result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify()); result = result && (this.County.TrimOrNullify() == that.County.TrimOrNullify()); result = result && (this.VatType == that.VatType); result = result && (this.Language.TrimOrNullify() == that.Language.TrimOrNullify()); result = result && (this.Currency.TrimOrNullify() == that.Currency.TrimOrNullify()); result = result && (this.Userchar1.TrimOrNullify() == that.Userchar1.TrimOrNullify()); result = result && (this.Userchar2.TrimOrNullify() == that.Userchar2.TrimOrNullify()); result = result && (this.Usernum1 == that.Usernum1); result = result && (this.Usernum2 == that.Usernum2); result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify()); result = result && (this.Euro == that.Euro); result = result && (this.CountryCode.TrimOrNullify() == that.CountryCode.TrimOrNullify()); result = result && (this.Town.TrimOrNullify() == that.Town.TrimOrNullify()); result = result && (this.PcodeLu == that.PcodeLu); result = result && (this.LinePos.TrimOrNullify() == that.LinePos.TrimOrNullify()); result = result && (this.VatCode.TrimOrNullify() == that.VatCode.TrimOrNullify()); result = result && (this.VatCountryCode.TrimOrNullify() == that.VatCountryCode.TrimOrNullify()); result = result && (this.MailstringOrder.TrimOrNullify() == that.MailstringOrder.TrimOrNullify()); result = result && (this.MailstringDisplay.TrimOrNullify() == that.MailstringDisplay.TrimOrNullify()); result = result && (this.MailstringNewline.TrimOrNullify() == that.MailstringNewline.TrimOrNullify()); result = result && (this.CountryCode2.TrimOrNullify() == that.CountryCode2.TrimOrNullify()); return(result); }