/// <summary>
        ///     Indicates whether the current <see cref="AddressXrefRecord" /> instance is equal to another <see cref="AddressXrefRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="AddressXrefRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(AddressXrefRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.AddId.TrimOrNullify() == that.AddId.TrimOrNullify());
            result = result && (this.Start == that.Start);
            result = result && (this.End == that.End);
            result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify());
            result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify());
            result = result && (this.Principal == that.Principal);
            result = result && (this.SalesRep.TrimOrNullify() == that.SalesRep.TrimOrNullify());
            result = result && (this.AddPostcode.TrimOrNullify() == that.AddPostcode.TrimOrNullify());
            result = result && (this.OrgName.TrimOrNullify() == that.OrgName.TrimOrNullify());
            result = result && (this.OrgDuns.TrimOrNullify() == that.OrgDuns.TrimOrNullify());
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="AddressXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="AddressXrefRecord" /> object instance.
        /// </returns>
        public AddressXrefRecord Clone()
        {
            AddressXrefRecord record = new AddressXrefRecord();

            record.Id          = this.Id;
            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.AddId       = this.AddId;
            record.Start       = this.Start;
            record.End         = this.End;
            record.Type        = this.Type;
            record.OrgId       = this.OrgId;
            record.Principal   = this.Principal;
            record.SalesRep    = this.SalesRep;
            record.AddPostcode = this.AddPostcode;
            record.OrgName     = this.OrgName;
            record.OrgDuns     = this.OrgDuns;
            record.ProleId     = this.ProleId;
            return(record);
        }