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

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

            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.ProdId    = this.ProdId;
            record.Instance  = this.Instance;
            record.AcadyCode = this.AcadyCode;
            return(record);
        }