コード例 #1
0
 /// <summary>
 ///     Indicates whether the current <see cref="SysConfigRecord" /> instance is equal to another <see cref="SysConfigRecord" /> instance.
 /// </summary>
 /// <param name="that">
 ///     The <see cref="SysConfigRecord" /> instance to be compared against this instance.
 /// </param>
 /// <returns>
 ///     True if both instances are considered equal; otherwise, false.
 /// </returns>
 public Boolean Equals(SysConfigRecord that)
 {
     Boolean result = true;
     result = result && (this.Id == that.Id);
     result = result && (this.SpId.TrimOrNullify() == that.SpId.TrimOrNullify());
     result = result && (this.KeyName.TrimOrNullify() == that.KeyName.TrimOrNullify());
     result = result && (this.ValueToUse == that.ValueToUse);
     result = result && (this.LabelName.TrimOrNullify() == that.LabelName.TrimOrNullify());
     result = result && (this.CharValue.TrimOrNullify() == that.CharValue.TrimOrNullify());
     result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify());
     result = result && (this.IntValue == that.IntValue);
     result = result && (this.DatetimeValue == that.DatetimeValue);
     result = result && (this.DecimalValue == that.DecimalValue);
     return result;
 }
コード例 #2
0
 /// <summary>
 ///     Creates a new <see cref="SysConfigRecord" /> object instance that is a shallow-copy of the current object instance.
 /// </summary>
 /// <returns>
 ///     The shallow-copy of the current <see cref="SysConfigRecord" /> object instance.
 /// </returns>
 public SysConfigRecord Clone()
 {
     SysConfigRecord record = new SysConfigRecord();
     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.SpId = this.SpId;
     record.KeyName = this.KeyName;
     record.ValueToUse = this.ValueToUse;
     record.LabelName = this.LabelName;
     record.CharValue = this.CharValue;
     record.RecordId = this.RecordId;
     record.IntValue = this.IntValue;
     record.DatetimeValue = this.DatetimeValue;
     record.DecimalValue = this.DecimalValue;
     return record;
 }