/// <summary> /// Indicates whether the current <see cref="LocationRecord" /> instance is equal to another <see cref="LocationRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="LocationRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(LocationRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify()); result = result && (this.AddId.TrimOrNullify() == that.AddId.TrimOrNullify()); result = result && (this.JoinInstrucs.TrimOrNullify() == that.JoinInstrucs.TrimOrNullify()); result = result && (this.Ref.TrimOrNullify() == that.Ref.TrimOrNullify()); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.CertName.TrimOrNullify() == that.CertName.TrimOrNullify()); result = result && (this.External == that.External); result = result && (this.ContactName.TrimOrNullify() == that.ContactName.TrimOrNullify()); result = result && (this.CostPerDay == that.CostPerDay); result = result && (this.DelPerDay == that.DelPerDay); result = result && (this.MaxPlaces == that.MaxPlaces); result = result && (this.Size.TrimOrNullify() == that.Size.TrimOrNullify()); result = result && (this.MapId.TrimOrNullify() == that.MapId.TrimOrNullify()); result = result && (this.Bedroom == that.Bedroom); result = result && (this.RoomType.TrimOrNullify() == that.RoomType.TrimOrNullify()); result = result && (this.RoomGrade.TrimOrNullify() == that.RoomGrade.TrimOrNullify()); result = result && (this.Direction.TrimOrNullify() == that.Direction.TrimOrNullify()); result = result && (this.Html.TrimOrNullify() == that.Html.TrimOrNullify()); result = result && (this.Url.TrimOrNullify() == that.Url.TrimOrNullify()); result = result && (this.MapFile.TrimOrNullify() == that.MapFile.TrimOrNullify()); result = result && (this.OurLocation == that.OurLocation); result = result && (this.TrainProvider == that.TrainProvider); result = result && (this.TrainLocation == that.TrainLocation); result = result && (this.Hotel == that.Hotel); result = result && (this.Analysis1.TrimOrNullify() == that.Analysis1.TrimOrNullify()); result = result && (this.Analysis2.TrimOrNullify() == that.Analysis2.TrimOrNullify()); result = result && (this.Directions.TrimOrNullify() == that.Directions.TrimOrNullify()); result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify()); result = result && (this.MapName.TrimOrNullify() == that.MapName.TrimOrNullify()); result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify()); result = result && (this.LocProleId.TrimOrNullify() == that.LocProleId.TrimOrNullify()); result = result && (this.LocPhone.TrimOrNullify() == that.LocPhone.TrimOrNullify()); result = result && (this.LocFax.TrimOrNullify() == that.LocFax.TrimOrNullify()); result = result && (this.LocPhoneStd.TrimOrNullify() == that.LocPhoneStd.TrimOrNullify()); result = result && (this.LocFaxStd.TrimOrNullify() == that.LocFaxStd.TrimOrNullify()); result = result && (this.LocEmail.TrimOrNullify() == that.LocEmail.TrimOrNullify()); result = result && (this.LocNearest1.TrimOrNullify() == that.LocNearest1.TrimOrNullify()); result = result && (this.LocNearest2.TrimOrNullify() == that.LocNearest2.TrimOrNullify()); result = result && (this.LocNearest3.TrimOrNullify() == that.LocNearest3.TrimOrNullify()); result = result && (this.LocNearest4.TrimOrNullify() == that.LocNearest4.TrimOrNullify()); result = result && (this.LocNearest5.TrimOrNullify() == that.LocNearest5.TrimOrNullify()); result = result && (this.LocNearest6.TrimOrNullify() == that.LocNearest6.TrimOrNullify()); result = result && (this.MapImagePath.TrimOrNullify() == that.MapImagePath.TrimOrNullify()); result = result && (this.DetailsPath.TrimOrNullify() == that.DetailsPath.TrimOrNullify()); result = result && (this.Region.TrimOrNullify() == that.Region.TrimOrNullify()); result = result && (this.DelDayRate == that.DelDayRate); result = result && (this.CostCode.TrimOrNullify() == that.CostCode.TrimOrNullify()); result = result && (this.RevCode.TrimOrNullify() == that.RevCode.TrimOrNullify()); result = result && (this.Web == that.Web); result = result && (this.VenueType.TrimOrNullify() == that.VenueType.TrimOrNullify()); result = result && (this.LinkedLocId.TrimOrNullify() == that.LinkedLocId.TrimOrNullify()); result = result && (this.Title.TrimOrNullify() == that.Title.TrimOrNullify()); result = result && (this.Description.TrimOrNullify() == that.Description.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="LocationRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="LocationRecord" /> object instance. /// </returns> public LocationRecord Clone() { LocationRecord record = new LocationRecord(); 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.AddId = this.AddId; record.JoinInstrucs = this.JoinInstrucs; record.Ref = this.Ref; record.Name = this.Name; record.CertName = this.CertName; record.External = this.External; record.ContactName = this.ContactName; record.CostPerDay = this.CostPerDay; record.DelPerDay = this.DelPerDay; record.MaxPlaces = this.MaxPlaces; record.Size = this.Size; record.MapId = this.MapId; record.Bedroom = this.Bedroom; record.RoomType = this.RoomType; record.RoomGrade = this.RoomGrade; record.Direction = this.Direction; record.Html = this.Html; record.Url = this.Url; record.MapFile = this.MapFile; record.OurLocation = this.OurLocation; record.TrainProvider = this.TrainProvider; record.TrainLocation = this.TrainLocation; record.Hotel = this.Hotel; record.Analysis1 = this.Analysis1; record.Analysis2 = this.Analysis2; record.Directions = this.Directions; record.Notes = this.Notes; record.MapName = this.MapName; record.SelcoSpId = this.SelcoSpId; record.LocProleId = this.LocProleId; record.LocPhone = this.LocPhone; record.LocFax = this.LocFax; record.LocPhoneStd = this.LocPhoneStd; record.LocFaxStd = this.LocFaxStd; record.LocEmail = this.LocEmail; record.LocNearest1 = this.LocNearest1; record.LocNearest2 = this.LocNearest2; record.LocNearest3 = this.LocNearest3; record.LocNearest4 = this.LocNearest4; record.LocNearest5 = this.LocNearest5; record.LocNearest6 = this.LocNearest6; record.MapImagePath = this.MapImagePath; record.DetailsPath = this.DetailsPath; record.Region = this.Region; record.DelDayRate = this.DelDayRate; record.CostCode = this.CostCode; record.RevCode = this.RevCode; record.Web = this.Web; record.VenueType = this.VenueType; record.LinkedLocId = this.LinkedLocId; record.Title = this.Title; record.Description = this.Description; return(record); }