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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.ParentId.TrimOrNullify() == that.ParentId.TrimOrNullify());
            result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify());
            result = result && (this.GradeId.TrimOrNullify() == that.GradeId.TrimOrNullify());
            result = result && (this.Main == that.Main);
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Creates a new <see cref="MemberBomRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="MemberBomRecord" /> object instance.
        /// </returns>
        public MemberBomRecord Clone()
        {
            MemberBomRecord record = new MemberBomRecord();

            record.Id       = this.Id;
            record.Lock     = this.Lock;
            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.ParentId = this.ParentId;
            record.ProdId   = this.ProdId;
            record.GradeId  = this.GradeId;
            record.Main     = this.Main;
            return(record);
        }