50 references to ParentRelations
System.Data.Common (50)
System\Data\ConstraintCollection.cs (4)
396for (int i = 0; i < Table.ParentRelations.Count; i++) 398DataRelation rel = Table.ParentRelations[i]; 427for (int i = 0; i < _table.ParentRelations.Count; i++) 429_table.ParentRelations[i].SetChildKeyConstraint(null);
System\Data\DataColumn.cs (3)
1563var parentRelations = new DataRelation[Table!.ParentRelations.Count]; 1564Table.ParentRelations.CopyTo(parentRelations, 0); 1646DataRelationCollection rels = _table!.ParentRelations;
System\Data\DataColumnCollection.cs (3)
489for (int i = 0; i < _table.ParentRelations.Count; i++) 491if (_table.ParentRelations[i].ChildKey.ContainsColumn(column)) 496throw ExceptionBuilder.CannotRemoveChildKey(_table.ParentRelations[i].RelationName);
System\Data\DataRelation.cs (4)
382((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 388((DataRelationCollection.DataTableRelationCollection)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this)); 399foreach (DataRelation rel in ChildTable.ParentRelations) 546foreach (DataRelation rel in ChildTable.ParentRelations)
System\Data\DataRelationCollection.cs (2)
797((DataTableRelationCollection)(relation.ChildTable.ParentRelations)).Add(relation); // Caching in ChildTable -> ParentRelations 848((DataTableRelationCollection)(relation.ChildTable.ParentRelations)).Remove(relation); // Removing Cache from ChildTable -> ParentRelations
System\Data\DataRow.cs (6)
846GetParentRow(_table.ParentRelations[relationName], DataRowVersion.Default); 849GetParentRow(_table.ParentRelations[relationName], version); 909GetParentRows(_table.ParentRelations[relationName], DataRowVersion.Default); 912GetParentRows(_table.ParentRelations[relationName], version); 1276foreach (DataRelation relation in _table.ParentRelations) 1344foreach (DataRelation relation in _table.ParentRelations)
System\Data\DataSet.cs (2)
1412DataRelationCollection relations = row.Table.ParentRelations; 2944internal static DataRelationCollection GetParentRelations(DataTable table) => table.ParentRelations;
System\Data\DataTable.cs (9)
1103foreach (DataRelation rel in ParentRelations) 1584foreach (DataRelation relation in ParentRelations) 1606foreach (DataRelation relation in ParentRelations) 1972foreach (DataRelation rel in ParentRelations) 4031DataRelationCollection dr = ParentRelations; 4352for (int j = 0; j < ParentRelations.Count; j++) 4354DataRelation relation = ParentRelations[j]; 7179for (int j = 0; j < ParentRelations.Count; j++) 7181DataRelation relation = ParentRelations[j];
System\Data\DataTableCollection.cs (1)
405if (table.ChildRelations.Count != 0 || table.ParentRelations.Count != 0)
System\Data\DataViewListener.cs (4)
113((DataRelationCollection.DataTableRelationCollection)(table.ParentRelations)).RelationPropertyChanged += handlerParentRelation; 114table.ParentRelations.CollectionChanged += handlerParentRelation; 136((DataRelationCollection.DataTableRelationCollection)(table.ParentRelations)).RelationPropertyChanged -= handlerParentRelation; 137table.ParentRelations.CollectionChanged -= handlerParentRelation;
System\Data\Filter\LookupNode.cs (1)
36relations = table.ParentRelations;
System\Data\ForeignKeyConstraint.cs (1)
907DataRelationCollection rels = Table!.ParentRelations;
System\Data\xmlsaver.cs (9)
510if (table.ParentRelations.Count == 0) 515for (int j = 0; j < table.ParentRelations.Count; j++) 517if (table.ParentRelations[j].Nested) 519if (table.ParentRelations[j].ParentTable == table) 1632foreach (DataRelation rel in col.Table.ParentRelations) 2717if (table.ParentRelations.Count == 0) 2722for (int j = 0; j < table.ParentRelations.Count; j++) 2724if (table.ParentRelations[j].Nested) 2726if (table.ParentRelations[j].ParentTable == table)
System\Xml\XmlDataDocument.cs (1)
3128if (dt.ParentRelations.Count == 0)