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

            result = result && (this.Id == that.Id);
            result = result && (this.AssociateId.TrimOrNullify() == that.AssociateId.TrimOrNullify());
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify());
            result = result && (this.Type == that.Type);
            result = result && (this.TypeName.TrimOrNullify() == that.TypeName.TrimOrNullify());
            result = result && (this.TypeCode.TrimOrNullify() == that.TypeCode.TrimOrNullify());
            result = result && (this.StartDate == that.StartDate);
            result = result && (this.EndDate == that.EndDate);
            return(result);
        }
Beispiel #2
0
        /// <summary>
        ///     Creates a new <see cref="AssociatesRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="AssociatesRecord" /> object instance.
        /// </returns>
        public AssociatesRecord Clone()
        {
            AssociatesRecord record = new AssociatesRecord();

            record.Id          = this.Id;
            record.AddDate     = this.AddDate;
            record.AddBy       = this.AddBy;
            record.ModDate     = this.ModDate;
            record.ModBy       = this.ModBy;
            record.RcvDate     = this.RcvDate;
            record.RcvFrom     = this.RcvFrom;
            record.AssociateId = this.AssociateId;
            record.ProleId     = this.ProleId;
            record.OrgId       = this.OrgId;
            record.Type        = this.Type;
            record.TypeName    = this.TypeName;
            record.TypeCode    = this.TypeCode;
            record.StartDate   = this.StartDate;
            record.EndDate     = this.EndDate;
            return(record);
        }