Skip to content

Commit 1305c5a

Browse files
committed
Add order to BK definition list.
1 parent 08c4aab commit 1305c5a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

DataWarehouseAutomation/DataWarehouseAutomation/DwaModel/DataObject.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ public class DataObject : IMetadata, IDataObject
3838
/// The definition of the Business Key(s) for the Data Object.
3939
/// Being able to record the business key definition
4040
/// This serves multiple purposes, but one of them is to support defining a series of business key definitions against the source data object, and reuse these across different data object mappings.
41+
/// The order is stored as well, because in some cases the order of keys is meaningful.
4142
/// </summary>
4243
[JsonPropertyName("businessKeyDefinitions")]
4344
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
44-
public List<BusinessKeyDefinition>? BusinessKeyDefinitions { get; set; }
45+
public List<Tuple<int,BusinessKeyDefinition>>? BusinessKeyDefinitions { get; set; }
46+
4547

4648
/// <summary>
4749
/// Any relationship to other data objects.

DataWarehouseAutomation/DataWarehouseAutomation/DwaModel/DataObjectMapping.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ public List<IDataItem> DataItems
8787

8888
/// <summary>
8989
/// The definition of the Business Key(s) for the Data Object Mapping.
90+
/// The order is stored as well, because in some cases the order of keys is meaningful.
9091
/// </summary>
9192
[JsonPropertyName("businessKeyDefinitions")]
9293
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
93-
public List<BusinessKeyDefinition>? BusinessKeyDefinitions { get; set; }
94+
public List<Tuple<int, BusinessKeyDefinition>>? BusinessKeyDefinitions { get; set; }
9495

9596
/// <summary>
9697
/// Any filtering that needs to be applied to the source-to-target mapping.

0 commit comments

Comments
 (0)