40 references to ParentKey
System.Data.Common (40)
System\Data\DataColumn.cs (1)
1664key = rels[i].ParentKey;
System\Data\DataColumnCollection.cs (1)
502if (_table.ChildRelations[i].ParentKey.ContainsColumn(column))
System\Data\DataRelation.cs (3)
291object[] parentKeyValues = parentRow.GetKeyValues(ParentKey); 486ForeignKeyConstraint? constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.ColumnsReference, ParentKey.ColumnsReference); 727parentColumns[i] = parent.Columns[ParentKey.ColumnsReference[i].ColumnName]!;
System\Data\DataRelationCollection.cs (2)
790if (relation.ParentKey.ColumnsEqual(((DataRelation)_relations[i]!).ParentKey))
System\Data\DataRow.cs (9)
828if (relation.ParentKey.Table != _table) 832return DataRelation.GetChildRows(relation.ParentKey, relation.ChildKey, this, version); 878return DataRelation.GetParentRow(relation.ParentKey, relation.ChildKey, this, version); 940return DataRelation.GetParentRows(relation.ParentKey, relation.ChildKey, this, version); 1280if (relation.ParentKey.Table == parentRow._table) 1282object[] parentKeyValues = parentRow.GetKeyValues(relation.ParentKey); 1333if (relation.ParentKey.Table != parentRow._table) 1335throw ExceptionBuilder.SetParentRowTableMismatch(relation.ParentKey.Table.TableName, parentRow._table.TableName); 1338object[] parentKeyValues = parentRow.GetKeyValues(relation.ParentKey);
System\Data\DataRowView.cs (3)
148if (relation == null || relation.ParentKey.Table != DataView.Table) 157object[] values = relation.ParentKey.GetKeyValues(record); 162childView = new RelatedView(this, relation.ParentKey, relation.ChildColumnsReference);
System\Data\Merger.cs (9)
536if (relation.ParentKey.ColumnsReference.Length != destRelation.ParentKey.ColumnsReference.Length) 542for (int i = 0; i < relation.ParentKey.ColumnsReference.Length; i++) 544DataColumn dest = destRelation.ParentKey.ColumnsReference[i]; 545DataColumn src = relation.ParentKey.ColumnsReference[i]; 578DataColumn[] parentColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 579DataColumn[] childColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 580for (int i = 0; i < relation.ParentKey.ColumnsReference.Length; i++) 582parentColumns[i] = parent.Columns[relation.ParentKey.ColumnsReference[i].ColumnName]!;
System\Data\RelationshipConverter.cs (4)
48DataTable parentTable = rel.ParentKey.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,
System\Data\xmlsaver.cs (6)
1161root.SetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS, rel.ParentKey.Table.EncodedTableName); 1164if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ParentKey.Table.TableName) == -3)) 1165root.SetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace); 1170DataColumn[] key = rel.ParentKey.ColumnsReference; 1809if (childRelations[j].Nested && childRelations[j].ParentKey.ColumnsReference.Length == 1 && childRelations[j].ParentKey.ColumnsReference[0] == col)
System\Xml\XmlDataDocument.cs (2)
1716return relation.ParentKey.ColumnsReference[i]; 2660if (parentRow == null || rel.ParentKey.Table != parentRow.Table)