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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.BrId.TrimOrNullify() == that.BrId.TrimOrNullify());
            result = result && (this.TableName.TrimOrNullify() == that.TableName.TrimOrNullify());
            result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify());
            result = result && (this.Disabled == that.Disabled);
            result = result && (this.Position.TrimOrNullify() == that.Position.TrimOrNullify());
            result = result && (this.District.TrimOrNullify() == that.District.TrimOrNullify());
            result = result && (this.DisId.TrimOrNullify() == that.DisId.TrimOrNullify());
            result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify());
            result = result && (this.StartDate == that.StartDate);
            result = result && (this.EndDate == that.EndDate);
            return(result);
        }
コード例 #2
0
        /// <summary>
        ///     Creates a new <see cref="BranchXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="BranchXrefRecord" /> object instance.
        /// </returns>
        public BranchXrefRecord Clone()
        {
            BranchXrefRecord record = new BranchXrefRecord();

            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.BrId      = this.BrId;
            record.TableName = this.TableName;
            record.RecordId  = this.RecordId;
            record.Disabled  = this.Disabled;
            record.Position  = this.Position;
            record.District  = this.District;
            record.DisId     = this.DisId;
            record.Status    = this.Status;
            record.StartDate = this.StartDate;
            record.EndDate   = this.EndDate;
            return(record);
        }