/// <summary> /// Indicates whether the current <see cref="DepartmentRecord" /> instance is equal to another <see cref="DepartmentRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="DepartmentRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(DepartmentRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify()); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="DepartmentRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="DepartmentRecord" /> object instance. /// </returns> public DepartmentRecord Clone() { DepartmentRecord record = new DepartmentRecord(); 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.OrgId = this.OrgId; record.Name = this.Name; return(record); }