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

            result = result && (this.Id == that.Id);
            result = result && (this.SubmitterProleId.TrimOrNullify() == that.SubmitterProleId.TrimOrNullify());
            result = result && (this.TrusteeProleId.TrimOrNullify() == that.TrusteeProleId.TrimOrNullify());
            result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify());
            result = result && (this.ClaimDate == that.ClaimDate);
            result = result && (this.DonationsFrom == that.DonationsFrom);
            result = result && (this.DonationsTo == that.DonationsTo);
            result = result && (this.AccountingPeriodEnd == that.AccountingPeriodEnd);
            result = result && (this.HmrcReference.TrimOrNullify() == that.HmrcReference.TrimOrNullify());
            result = result && (this.RegulatorName.TrimOrNullify() == that.RegulatorName.TrimOrNullify());
            result = result && (this.RegulatorNumber.TrimOrNullify() == that.RegulatorNumber.TrimOrNullify());
            result = result && (this.Adjustment == that.Adjustment);
            result = result && (this.Process == that.Process);
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="GiftaidclaimRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="GiftaidclaimRecord" /> object instance.
        /// </returns>
        public GiftaidclaimRecord Clone()
        {
            GiftaidclaimRecord record = new GiftaidclaimRecord();

            record.Id                  = this.Id;
            record.AddDate             = this.AddDate;
            record.AddBy               = this.AddBy;
            record.ModDate             = this.ModDate;
            record.ModBy               = this.ModBy;
            record.SubmitterProleId    = this.SubmitterProleId;
            record.TrusteeProleId      = this.TrusteeProleId;
            record.OrgId               = this.OrgId;
            record.ClaimDate           = this.ClaimDate;
            record.DonationsFrom       = this.DonationsFrom;
            record.DonationsTo         = this.DonationsTo;
            record.AccountingPeriodEnd = this.AccountingPeriodEnd;
            record.HmrcReference       = this.HmrcReference;
            record.RegulatorName       = this.RegulatorName;
            record.RegulatorNumber     = this.RegulatorNumber;
            record.Adjustment          = this.Adjustment;
            record.Process             = this.Process;
            record.SelcoSpId           = this.SelcoSpId;
            return(record);
        }