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