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