40 references to ParentKey
System.Data (40)
fx\src\data\System\Data\DataColumn.cs (1)
1615
key = rels[i].
ParentKey
;
fx\src\data\System\Data\DataColumnCollection.cs (1)
457
if (table.ChildRelations[i].
ParentKey
.ContainsColumn(column)) {
fx\src\data\System\Data\DataRelation.cs (3)
300
object[] parentKeyValues = parentRow.GetKeyValues(
ParentKey
);
483
ForeignKeyConstraint constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.ColumnsReference,
ParentKey
.ColumnsReference);
706
parentColumns[i] = parent.Columns[
ParentKey
.ColumnsReference[i].ColumnName];
fx\src\data\System\Data\DataRelationCollection.cs (2)
705
if (relation.
ParentKey
.ColumnsEqual(((DataRelation)relations[i]).
ParentKey
))
fx\src\data\System\Data\DataRow.cs (9)
768
if (relation.
ParentKey
.Table != _table)
770
return DataRelation.GetChildRows(relation.
ParentKey
, relation.ChildKey, this, version);
813
return DataRelation.GetParentRow(relation.
ParentKey
, relation.ChildKey, this, version);
876
return DataRelation.GetParentRows(relation.
ParentKey
, relation.ChildKey, this, version);
1167
if (relation.
ParentKey
.Table == parentRow._table) {
1168
object[] parentKeyValues = parentRow.GetKeyValues(relation.
ParentKey
);
1216
if (relation.
ParentKey
.Table != parentRow._table)
1217
throw ExceptionBuilder.SetParentRowTableMismatch(relation.
ParentKey
.Table.TableName, parentRow._table.TableName);
1219
object[] parentKeyValues = parentRow.GetKeyValues(relation.
ParentKey
);
fx\src\data\System\Data\DataRowView.cs (3)
174
if (relation == null || relation.
ParentKey
.Table != DataView.Table) {
180
object[] values = relation.
ParentKey
.GetKeyValues(record);
184
childView = new RelatedView(this, relation.
ParentKey
, relation.ChildColumnsReference);
fx\src\data\System\Data\Merger.cs (9)
446
if (relation.
ParentKey
.ColumnsReference.Length != destRelation.
ParentKey
.ColumnsReference.Length) {
452
for (int i = 0; i < relation.
ParentKey
.ColumnsReference.Length; i++) {
453
DataColumn dest = destRelation.
ParentKey
.ColumnsReference[i];
454
DataColumn src = relation.
ParentKey
.ColumnsReference[i];
498
DataColumn[] parentColumns = new DataColumn[relation.
ParentKey
.ColumnsReference.Length];
499
DataColumn[] childColumns = new DataColumn[relation.
ParentKey
.ColumnsReference.Length];
500
for (int i = 0; i < relation.
ParentKey
.ColumnsReference.Length; i++) {
501
parentColumns[i] = parent.Columns[relation.
ParentKey
.ColumnsReference[i].ColumnName];
fx\src\data\System\Data\RelationshipConverter.cs (4)
51
DataTable parentTable = rel.
ParentKey
.Table;
58
values = new object[] { rel.RelationName, rel.
ParentKey
.Table.TableName, rel.ChildKey.Table.TableName,rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
65
values = new object[] { rel.RelationName, rel.
ParentKey
.Table.TableName, rel.
ParentKey
.Table.Namespace, rel.ChildKey.Table.TableName,
fx\src\data\System\Data\xmlsaver.cs (6)
977
root.SetAttribute(Keywords.MSD_PARENT, Keywords.MSDNS, rel.
ParentKey
.Table.EncodedTableName);
980
if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.
ParentKey
.Table.TableName) ==-3))
981
root.SetAttribute( Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.
ParentKey
.Table.Namespace);
986
DataColumn[] key = rel.
ParentKey
.ColumnsReference;
1538
if (childRelations[j].Nested && childRelations[j].
ParentKey
.ColumnsReference.Length == 1 && childRelations[j].
ParentKey
.ColumnsReference[0] == col)
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
1530
return relation.
ParentKey
.ColumnsReference[i];
2384
if ( parentRow == null || rel.
ParentKey
.Table != parentRow.Table )