Skip to content

Commit f96f7d6

Browse files
committed
Renamed RelationshipMap to AssociationMap
The `RelationshipMap` is an `internal` class that provides a mapping between the `Relationships` enum and the `RelationshipType` enum. Those enums have been renamed to `AssociationTypes` (191262a) and `CollectionType` (1daf799) respectively, and so the `RelationshipMap` identifier no longer makes sense. As such, it's been renamed to `AssociationMap`.
1 parent e6cbc4b commit f96f7d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

OnTopic/Mapping/Internal/RelationshipMap.cs renamed to OnTopic/Mapping/Internal/AssociationMap.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace OnTopic.Mapping.Internal {
1010

1111
/*============================================================================================================================
12-
| CLASS: RELATIONSHIP MAP
12+
| CLASS: ASSOCIATION MAP
1313
\---------------------------------------------------------------------------------------------------------------------------*/
1414
/// <summary>
1515
/// Provides a mapping of the relationship between <see cref="CollectionType"/> and <see cref="AssociationTypes"/>.
@@ -19,12 +19,12 @@ namespace OnTopic.Mapping.Internal {
1919
/// when a single <see cref="CollectionType"/> needs to be related to an item in the collection of <see cref="
2020
/// AssociationTypes"/>. This mapping makes that feasible.
2121
/// </remarks>
22-
static internal class RelationshipMap {
22+
static internal class AssociationMap {
2323

2424
/*==========================================================================================================================
2525
| CONSTRUCTOR (STATIC)
2626
\-------------------------------------------------------------------------------------------------------------------------*/
27-
static RelationshipMap() {
27+
static AssociationMap() {
2828

2929
var mappings = new Dictionary<CollectionType, AssociationTypes> {
3030
{ CollectionType.Any, AssociationTypes.None },

OnTopic/Mapping/TopicMappingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ private IList<Topic> GetSourceCollection(Topic source, AssociationTypes associat
610610
| Provide local function for evaluating current collection
611611
\-----------------------------------------------------------------------------------------------------------------------*/
612612
IList<Topic> getCollection(CollectionType collection, Func<string, bool> contains, Func<IList<Topic>> getTopics) {
613-
var targetAssociations = RelationshipMap.Mappings[collection];
613+
var targetAssociations = AssociationMap.Mappings[collection];
614614
var preconditionsMet =
615615
listSource.Count == 0 &&
616616
(collectionType is CollectionType.Any || collectionType.Equals(collection)) &&

0 commit comments

Comments
 (0)