/// <summary> /// Indicates whether the current <see cref="GenericmodeltableRecord" /> instance is equal to another <see cref="GenericmodeltableRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="GenericmodeltableRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(GenericmodeltableRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Id1.TrimOrNullify() == that.Id1.TrimOrNullify()); result = result && (this.Id2.TrimOrNullify() == that.Id2.TrimOrNullify()); result = result && (this.Id3.TrimOrNullify() == that.Id3.TrimOrNullify()); result = result && (this.Id4.TrimOrNullify() == that.Id4.TrimOrNullify()); result = result && (this.Id5.TrimOrNullify() == that.Id5.TrimOrNullify()); result = result && (this.Desc1.TrimOrNullify() == that.Desc1.TrimOrNullify()); result = result && (this.Desc2.TrimOrNullify() == that.Desc2.TrimOrNullify()); result = result && (this.Desc3.TrimOrNullify() == that.Desc3.TrimOrNullify()); result = result && (this.Desc4.TrimOrNullify() == that.Desc4.TrimOrNullify()); result = result && (this.Desc5.TrimOrNullify() == that.Desc5.TrimOrNullify()); result = result && (this.Longdesc.TrimOrNullify() == that.Longdesc.TrimOrNullify()); result = result && (this.Date1 == that.Date1); result = result && (this.Date2 == that.Date2); result = result && (this.Date3 == that.Date3); result = result && (this.Int1 == that.Int1); result = result && (this.Int2 == that.Int2); result = result && (this.Int3 == that.Int3); result = result && (this.Money1 == that.Money1); result = result && (this.Money2 == that.Money2); result = result && (this.Money3 == that.Money3); return(result); }
/// <summary> /// Creates a new <see cref="GenericmodeltableRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="GenericmodeltableRecord" /> object instance. /// </returns> public GenericmodeltableRecord Clone() { GenericmodeltableRecord record = new GenericmodeltableRecord(); record.Id = this.Id; record.Id1 = this.Id1; record.Id2 = this.Id2; record.Id3 = this.Id3; record.Id4 = this.Id4; record.Id5 = this.Id5; record.Desc1 = this.Desc1; record.Desc2 = this.Desc2; record.Desc3 = this.Desc3; record.Desc4 = this.Desc4; record.Desc5 = this.Desc5; record.Longdesc = this.Longdesc; record.Date1 = this.Date1; record.Date2 = this.Date2; record.Date3 = this.Date3; record.Int1 = this.Int1; record.Int2 = this.Int2; record.Int3 = this.Int3; record.Money1 = this.Money1; record.Money2 = this.Money2; record.Money3 = this.Money3; return(record); }