10 instantiations of DataKey
System.Data.Common (10)
System\Data\DataRelation.cs (2)
686
_parentKey = new
DataKey
(parentColumns, true);
687
_childKey = new
DataKey
(childColumns, true);
System\Data\DataRow.cs (2)
948
DataKey key = new
DataKey
(columns, false); // temporary key, don't copy columns
1130
DataKey key = new
DataKey
(columns, false); // temporary key, don't copy columns
System\Data\ForeignKeyConstraint.cs (2)
819
_parentKey = new
DataKey
(parentColumns, true);
820
_childKey = new
DataKey
(childColumns, true);
System\Data\Merger.cs (1)
643
key = new
DataKey
(srcColumns, false); // DataKey will take ownership of srcColumns
System\Data\RelatedView.cs (2)
25
_childKey = new
DataKey
(columns, true);
36
_childKey = new
DataKey
(childKeyColumns, true);
System\Data\UniqueConstraint.cs (1)
384
_key = new
DataKey
(columns, true);
47 references to DataKey
System.Data.Common (47)
System\Data\DataColumn.cs (2)
1570
DataKey
key = relation.ChildKey;
1646
DataKey
key;
System\Data\DataKey.cs (4)
8
internal readonly struct DataKey : IEquatable<
DataKey
>
93
internal bool ColumnsEqual(
DataKey
key) => ColumnsEqual(_columns, key._columns);
154
return Equals((
DataKey
)value);
157
public bool Equals(
DataKey
value)
System\Data\DataRelation.cs (10)
44
private
DataKey
_childKey;
45
private
DataKey
_parentKey;
165
internal
DataKey
ChildKey
219
internal static DataRow[] GetChildRows(
DataKey
parentKey,
DataKey
childKey, DataRow parentRow, DataRowVersion version)
234
internal static DataRow[] GetParentRows(
DataKey
parentKey,
DataKey
childKey, DataRow childRow, DataRowVersion version)
246
internal static DataRow? GetParentRow(
DataKey
parentKey,
DataKey
childKey, DataRow childRow, DataRowVersion version)
323
internal
DataKey
ParentKey
System\Data\DataRelationCollection.cs (1)
784
DataKey
childKey = relation.ChildKey;
System\Data\DataRow.cs (7)
948
DataKey
key = new DataKey(columns, false); // temporary key, don't copy columns
952
internal object[] GetKeyValues(
DataKey
key)
958
internal object[] GetKeyValues(
DataKey
key, DataRowVersion version)
1077
internal bool HasKeyChanged(
DataKey
key) =>
1080
internal bool HasKeyChanged(
DataKey
key, DataRowVersion version1, DataRowVersion version2)
1130
DataKey
key = new DataKey(columns, false); // temporary key, don't copy columns
1236
internal void SetKeyValues(
DataKey
key, object[] keyValues)
System\Data\DataTable.cs (5)
2122
internal static void SetKeyValues(
DataKey
key, object[] keyValues, int record)
2136
internal DataRow? FindMergeTarget(DataRow row,
DataKey
key, Index ndx)
3047
private DataRow? FindRow(
DataKey
key, object?[] values)
3058
private DataRow? FindRow(
DataKey
key, object? value)
3371
private static IndexField[] NewIndexDesc(
DataKey
key)
System\Data\ForeignKeyConstraint.cs (4)
28
private
DataKey
_childKey;
29
private
DataKey
_parentKey;
106
internal
DataKey
ChildKey
896
internal
DataKey
ParentKey
System\Data\Merger.cs (7)
200
DataKey
key = default(
DataKey
);
238
DataKey
key = default(
DataKey
);
626
private static
DataKey
GetSrcKey(DataTable src, DataTable dst)
633
DataKey
key = default(
DataKey
);
System\Data\RecordManager.cs (1)
195
internal static void SetKeyValues(int record,
DataKey
key, object[] keyValues)
System\Data\RelatedView.cs (3)
11
private readonly
DataKey
? _parentKey;
12
private readonly
DataKey
_childKey;
31
public RelatedView(DataRowView parentRowView,
DataKey
parentKey, DataColumn[] childKeyColumns) : base(childKeyColumns[0].Table, false)
System\Data\UniqueConstraint.cs (3)
18
private
DataKey
_key;
148
Debug.Assert(
DataKey
.ColumnsEqual(_key.ColumnsReference, sortIndexColumns), "UniqueConstraint index columns do not match the key sort index");
417
internal
DataKey
Key