File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
OnTopic.Data.Transfer/Interchange Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public class ImportOptions {
28
28
\-------------------------------------------------------------------------------------------------------------------------*/
29
29
private bool ? _deleteUnmatchedAttributes ;
30
30
private bool ? _deleteUnmatchedRelationships ;
31
+ private bool ? _deleteUnmatchedReferences ;
31
32
private bool ? _deleteUnmatchedChildren ;
32
33
private bool ? _deleteUnmatchedNestedTopics ;
33
34
private bool ? _overwriteContentType ;
@@ -77,6 +78,21 @@ public bool DeleteUnmatchedRelationships {
77
78
set => _deleteUnmatchedRelationships = value ;
78
79
}
79
80
81
+ /*==========================================================================================================================
82
+ | DELETE UNMATCHED REFERENCES
83
+ \-------------------------------------------------------------------------------------------------------------------------*/
84
+ /// <summary>
85
+ /// Delete references in the target database which don't exist in the source <see cref="TopicData"/> graph.
86
+ /// </summary>
87
+ /// <remarks>
88
+ /// This will delete any existing references that aren't <i>also</i> represented in the source <see cref="TopicData"/>
89
+ /// graph.
90
+ /// </remarks>
91
+ public bool DeleteUnmatchedReferences {
92
+ get => _deleteUnmatchedReferences ?? Strategy is ImportStrategy . Replace ;
93
+ set => _deleteUnmatchedReferences = value ;
94
+ }
95
+
80
96
/*==========================================================================================================================
81
97
| DELETE UNMATCHED CHILDREN
82
98
\-------------------------------------------------------------------------------------------------------------------------*/
You can’t perform that action at this time.
0 commit comments