protected bool Equals(AssociationRecord other)
 {
     return(Id == other.Id &&
            AssocDays == other.AssocDays &&
            string.Equals(AssocLocationSuffix, other.AssocLocationSuffix) &&
            string.Equals(AssocTrainUid, other.AssocTrainUid) &&
            AssocType == other.AssocType &&
            string.Equals(BaseLocationSuffix, other.BaseLocationSuffix) &&
            Category == other.Category &&
            DateFrom.Equals(other.DateFrom) &&
            DateIndicator == other.DateIndicator &&
            DateTo.Equals(other.DateTo) &&
            string.Equals(DiagramType, other.DiagramType) &&
            string.Equals(Location, other.Location) &&
            string.Equals(MainTrainUid, other.MainTrainUid) &&
            RecordIdentity == other.RecordIdentity &&
            StpIndicator == other.StpIndicator);
 }