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