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

            result = result && (this.Id == that.Id);
            result = result && (this.Description.TrimOrNullify() == that.Description.TrimOrNullify());
            result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify());
            return(result);
        }
Beispiel #2
0
        /// <summary>
        ///     Creates a new <see cref="PayscheduleheaderRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="PayscheduleheaderRecord" /> object instance.
        /// </returns>
        public PayscheduleheaderRecord Clone()
        {
            PayscheduleheaderRecord record = new PayscheduleheaderRecord();

            record.Id          = this.Id;
            record.AddDate     = this.AddDate;
            record.AddBy       = this.AddBy;
            record.ModDate     = this.ModDate;
            record.ModBy       = this.ModBy;
            record.Description = this.Description;
            record.Notes       = this.Notes;
            return(record);
        }