/// <summary> /// Indicates whether the current <see cref="PacktypeRecord" /> instance is equal to another <see cref="PacktypeRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="PacktypeRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(PacktypeRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.Type == that.Type); result = result && (this.Desc.TrimOrNullify() == that.Desc.TrimOrNullify()); result = result && (this.StoredProc.TrimOrNullify() == that.StoredProc.TrimOrNullify()); result = result && (this.Url.TrimOrNullify() == that.Url.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="PacktypeRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="PacktypeRecord" /> object instance. /// </returns> public PacktypeRecord Clone() { PacktypeRecord record = new PacktypeRecord(); record.Id = this.Id; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.Type = this.Type; record.Desc = this.Desc; record.StoredProc = this.StoredProc; record.Url = this.Url; return(record); }