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