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

            result = result && (this.Id == that.Id);
            result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify());
            result = result && (this.PackId.TrimOrNullify() == that.PackId.TrimOrNullify());
            result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify());
            result = result && (this.Suppress == that.Suppress);
            return(result);
        }
예제 #2
0
        /// <summary>
        ///     Creates a new <see cref="CustomerPackRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="CustomerPackRecord" /> object instance.
        /// </returns>
        public CustomerPackRecord Clone()
        {
            CustomerPackRecord record = new CustomerPackRecord();

            record.Id       = this.Id;
            record.AddDate  = this.AddDate;
            record.AddBy    = this.AddBy;
            record.ModDate  = this.ModDate;
            record.ModBy    = this.ModBy;
            record.OrgId    = this.OrgId;
            record.PackId   = this.PackId;
            record.Type     = this.Type;
            record.Suppress = this.Suppress;
            return(record);
        }