File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
OnTopic.Data.Transfer/Interchange Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 3
3
| Client Ignia, LLC
4
4
| Project Topics Library
5
5
\=============================================================================================================================*/
6
+ using System ;
6
7
using System . Diagnostics . CodeAnalysis ;
7
8
8
9
namespace OnTopic . Data . Transfer . Interchange {
@@ -96,10 +97,10 @@ public bool IncludeNestedTopics {
96
97
public bool IncludeChildTopics { get ; set ; }
97
98
98
99
/*==========================================================================================================================
99
- | TRANSLATE TOPIC POINTERS
100
+ | TRANSLATE LEGACY TOPIC REFERENCES
100
101
\-------------------------------------------------------------------------------------------------------------------------*/
101
102
/// <summary>
102
- /// Determines whether attributes that appear to be topic pointers should be mapped to their fully qualified unique key.
103
+ /// Determines whether attributes that appear to be topic reference should be mapped to its fully qualified unique key.
103
104
/// </summary>
104
105
/// <remarks>
105
106
/// <para>
@@ -129,6 +130,9 @@ public bool IncludeNestedTopics {
129
130
/// enabled when it's known to be necessary to maintain backward compatibility.
130
131
/// </para>
131
132
/// </remarks>
133
+ public bool TranslateLegacyTopicReferences { get ; set ; }
134
+
135
+ [ Obsolete ( "The TranslateTopicPointers option has been renamed to TranslateLegacyTopicReferences" , true ) ]
132
136
public bool TranslateTopicPointers { get ; set ; }
133
137
134
138
} //Class
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ childTopic.ContentType is "List"
163
163
| Get attribute value
164
164
\-----------------------------------------------------------------------------------------------------------------------*/
165
165
string ? getAttributeValue ( AttributeRecord attribute ) =>
166
- options . TranslateTopicPointers && attribute . Key . EndsWith ( "ID" , StringComparison . InvariantCultureIgnoreCase ) ?
166
+ options . TranslateLegacyTopicReferences && attribute . Key . EndsWith ( "ID" , StringComparison . InvariantCultureIgnoreCase ) ?
167
167
GetUniqueKey ( topic , attribute . Value , options ) :
168
168
attribute . Value ;
169
169
@@ -465,9 +465,9 @@ bool useCustomMergeRules(AttributeData attribute) =>
465
465
/// </summary>
466
466
/// <remarks>
467
467
/// Note that this function is <i>exclusively</i> required for maintaining backward compatibility the <see cref="
468
- /// ExportOptions.TranslateTopicPointers "/> option/ With the release of OnTopic 5.0.0, and OnTopic Data Transfer 3.0.0,
469
- /// implementers should prefer the use of <see cref="Topic.References"/>. The <see cref="GetUniqueKey(Topic, String? ,
470
- /// ExportOptions)"/> method continues to be included primarily for backward compatibility with legacy database
468
+ /// ExportOptions.TranslateLegacyTopicReferences "/> option/ With the release of OnTopic 5.0.0, and OnTopic Data Transfer
469
+ /// 3.0.0, implementers should prefer the use of <see cref="Topic.References"/>. The <see cref="GetUniqueKey(Topic,
470
+ /// String?, ExportOptions)"/> method continues to be included primarily for backward compatibility with legacy database
471
471
/// configurations.
472
472
/// </remarks>
473
473
/// <param name="topic">The source <see cref="Topic"/> to operate off of.</param>
You can’t perform that action at this time.
0 commit comments