37 references to ChildKey
System.Data.Common (37)
System\Data\DataColumn.cs (2)
1570
DataKey key = relation.
ChildKey
;
1652
key = rels[i].
ChildKey
;
System\Data\DataColumnCollection.cs (1)
491
if (_table.ParentRelations[i].
ChildKey
.ContainsColumn(column))
System\Data\DataRelation.cs (5)
294
RecordManager.SetKeyValues(childRow._tempRecord,
ChildKey
, parentKeyValues);
298
RecordManager.SetKeyValues(childRow._newRecord,
ChildKey
, parentKeyValues);
302
RecordManager.SetKeyValues(childRow._oldRecord,
ChildKey
, parentKeyValues);
486
ForeignKeyConstraint? constraint = ChildTable.Constraints.FindForeignKeyConstraint(
ChildKey
.ColumnsReference, ParentKey.ColumnsReference);
728
childColumns[i] = child.Columns[
ChildKey
.ColumnsReference[i].ColumnName]!;
System\Data\DataRelationCollection.cs (4)
784
DataKey childKey = relation.
ChildKey
;
788
if (childKey.ColumnsEqual(((DataRelation)_relations[i]!).
ChildKey
))
800
relation.
ChildKey
.GetSortIndex().AddRef();
836
relation.
ChildKey
.GetSortIndex().RemoveRef();
System\Data\DataRow.cs (12)
832
return DataRelation.GetChildRows(relation.ParentKey, relation.
ChildKey
, this, version);
873
if (relation.
ChildKey
.Table != _table)
878
return DataRelation.GetParentRow(relation.ParentKey, relation.
ChildKey
, this, version);
935
if (relation.
ChildKey
.Table != _table)
940
return DataRelation.GetParentRows(relation.ParentKey, relation.
ChildKey
, this, version);
1283
SetKeyValues(relation.
ChildKey
, parentKeyValues);
1328
if (relation.
ChildKey
.Table != _table)
1330
throw ExceptionBuilder.SetParentRowTableMismatch(relation.
ChildKey
.Table.TableName, _table.TableName);
1339
SetKeyValues(relation.
ChildKey
, parentKeyValues);
1354
if (relation.
ChildKey
.Table != _table)
1356
throw ExceptionBuilder.SetParentRowTableMismatch(relation.
ChildKey
.Table.TableName, _table.TableName);
1361
SetKeyValues(relation.
ChildKey
, parentKeyValues);
System\Data\Merger.cs (3)
554
dest = destRelation.
ChildKey
.ColumnsReference[i];
555
src = relation.
ChildKey
.ColumnsReference[i];
583
childColumns[i] = child.Columns[relation.
ChildKey
.ColumnsReference[i].ColumnName]!;
System\Data\RelationshipConverter.cs (4)
49
DataTable childTable = rel.
ChildKey
.Table;
56
values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.
ChildKey
.Table.TableName, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
64
values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.ParentKey.Table.Namespace, rel.
ChildKey
.Table.TableName,
65
rel.
ChildKey
.Table.Namespace, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
System\Data\xmlsaver.cs (4)
1162
root.SetAttribute(Keywords.MSD_CHILD, Keywords.MSDNS, rel.
ChildKey
.Table.EncodedTableName);
1167
if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.
ChildKey
.Table.TableName) == -3))
1168
root.SetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.
ChildKey
.Table.Namespace);
1186
key = rel.
ChildKey
.ColumnsReference;
System\Xml\XmlDataDocument.cs (2)
1579
if (relation.
ChildKey
.ContainsColumn(col))
1712
DataColumn[] columns = relation.
ChildKey
.ColumnsReference;