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

            result = result && (this.Id == that.Id);
            result = result && (this.MastProdId.TrimOrNullify() == that.MastProdId.TrimOrNullify());
            result = result && (this.RelatedProdId.TrimOrNullify() == that.RelatedProdId.TrimOrNullify());
            result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify());
            result = result && (this.Prereq == that.Prereq);
            result = result && (this.SchnId.TrimOrNullify() == that.SchnId.TrimOrNullify());
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Creates a new <see cref="ProductProdXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="ProductProdXrefRecord" /> object instance.
        /// </returns>
        public ProductProdXrefRecord Clone()
        {
            ProductProdXrefRecord record = new ProductProdXrefRecord();

            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.MastProdId    = this.MastProdId;
            record.RelatedProdId = this.RelatedProdId;
            record.Notes         = this.Notes;
            record.Prereq        = this.Prereq;
            record.SchnId        = this.SchnId;
            return(record);
        }