Skip to content

Commit 213a46b

Browse files
committed
Renamed OnTopic.References to OnTopic.Associations
The introduction of topic references has caused confusion and ambiguity in the naming convention for relationships. Previously, the only relationships to other topics we had were `Topic.Relationships`. But, now, we also have `Topic.References` as well. Referring to both of these as "relationships" is thus confusing since it _could_ refer to `Topic.Relationships` specifically, but could _also_ refer to `Topic.References`. An early attempt to mitigate this had resulted in the `OnTopic.References` nomenclature. That's no better, as it _could_ refer to `Topic.References` specifically, but could _also_ refer to `Topic.Relationships`. To avoid confusion, those are now being referred to collectively as topic _associations_. We've already updated e.g. the `Relationships` enum to `AssociationTypes` (191262a), along with a number of related changes. We're now renaming `OnTopic.References` to `OnTopic.Associations`.
1 parent cf7badf commit 213a46b

12 files changed

Lines changed: 12 additions & 12 deletions

OnTopic.Tests/Entities/CustomTopic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Globalization;
88
using OnTopic.Attributes;
99
using OnTopic.Internal.Diagnostics;
10-
using OnTopic.References;
10+
using OnTopic.Associations;
1111

1212
namespace OnTopic.Tests.Entities {
1313

OnTopic.Tests/SqlTopicRepositoryTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Xml;
1010
using Microsoft.VisualStudio.TestTools.UnitTesting;
1111
using OnTopic.Data.Sql;
12-
using OnTopic.References;
12+
using OnTopic.Associations;
1313
using OnTopic.Tests.Schemas;
1414

1515
namespace OnTopic.Tests {

OnTopic.Tests/TopicReferenceCollectionTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
\=============================================================================================================================*/
66
using System;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
8-
using OnTopic.References;
8+
using OnTopic.Associations;
99
using OnTopic.Tests.Entities;
1010
using OnTopic.Collections.Specialized;
1111

OnTopic.Tests/TopicRelationshipMultiMapTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Linq;
88
using Microsoft.VisualStudio.TestTools.UnitTesting;
99
using OnTopic.Collections.Specialized;
10-
using OnTopic.References;
10+
using OnTopic.Associations;
1111

1212
namespace OnTopic.Tests {
1313

OnTopic.Tests/TopicRepositoryBaseTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using OnTopic.Collections.Specialized;
1111
using OnTopic.Data.Caching;
1212
using OnTopic.Metadata;
13-
using OnTopic.References;
13+
using OnTopic.Associations;
1414
using OnTopic.Repositories;
1515
using OnTopic.TestDoubles;
1616
using OnTopic.TestDoubles.Metadata;

OnTopic/References/ReferenceSetterAttribute.cs renamed to OnTopic/Associations/ReferenceSetterAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using OnTopic.Collections.Specialized;
88

9-
namespace OnTopic.References {
9+
namespace OnTopic.Associations {
1010

1111
/*============================================================================================================================
1212
| CLASS: REFERENCE SETTER [ATTRIBUTE]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using OnTopic.Metadata;
99
using OnTopic.Repositories;
1010

11-
namespace OnTopic.References {
11+
namespace OnTopic.Associations {
1212

1313
/*============================================================================================================================
1414
| CLASS: TOPIC REFERENCE

OnTopic/References/TopicReferenceCollection.cs renamed to OnTopic/Associations/TopicReferenceCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using OnTopic.Collections.Specialized;
88
using OnTopic.Repositories;
99

10-
namespace OnTopic.References {
10+
namespace OnTopic.Associations {
1111

1212
/*============================================================================================================================
1313
| CLASS: TOPIC REFERENCE COLLECTION

OnTopic/References/TopicRelationshipMultiMap.cs renamed to OnTopic/Associations/TopicRelationshipMultiMap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using OnTopic.Internal.Diagnostics;
99
using OnTopic.Repositories;
1010

11-
namespace OnTopic.References {
11+
namespace OnTopic.Associations {
1212

1313
/*============================================================================================================================
1414
| CLASS: TOPIC RELATIONSHIP MULTIMAP

OnTopic/Internal/Reflection/TopicPropertyDispatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using System.Runtime.ExceptionServices;
1111
using OnTopic.Attributes;
1212
using OnTopic.Collections.Specialized;
13-
using OnTopic.References;
13+
using OnTopic.Associations;
1414

1515
namespace OnTopic.Internal.Reflection {
1616

0 commit comments

Comments
 (0)