50 references to ParentRelations
System.Data.Common (50)
System\Data\ConstraintCollection.cs (4)
396
for (int i = 0; i < Table.
ParentRelations
.Count; i++)
398
DataRelation rel = Table.
ParentRelations
[i];
427
for (int i = 0; i < _table.
ParentRelations
.Count; i++)
429
_table.
ParentRelations
[i].SetChildKeyConstraint(null);
System\Data\DataColumn.cs (3)
1564
var parentRelations = new DataRelation[Table!.
ParentRelations
.Count];
1565
Table.
ParentRelations
.CopyTo(parentRelations, 0);
1647
DataRelationCollection rels = _table!.
ParentRelations
;
System\Data\DataColumnCollection.cs (3)
489
for (int i = 0; i < _table.
ParentRelations
.Count; i++)
491
if (_table.
ParentRelations
[i].ChildKey.ContainsColumn(column))
496
throw 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));
399
foreach (DataRelation rel in ChildTable.
ParentRelations
)
546
foreach (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)
846
GetParentRow(_table.
ParentRelations
[relationName], DataRowVersion.Default);
849
GetParentRow(_table.
ParentRelations
[relationName], version);
909
GetParentRows(_table.
ParentRelations
[relationName], DataRowVersion.Default);
912
GetParentRows(_table.
ParentRelations
[relationName], version);
1276
foreach (DataRelation relation in _table.
ParentRelations
)
1344
foreach (DataRelation relation in _table.
ParentRelations
)
System\Data\DataSet.cs (2)
1422
DataRelationCollection relations = row.Table.
ParentRelations
;
3000
internal static DataRelationCollection GetParentRelations(DataTable table) => table.
ParentRelations
;
System\Data\DataTable.cs (9)
1108
foreach (DataRelation rel in
ParentRelations
)
1589
foreach (DataRelation relation in
ParentRelations
)
1611
foreach (DataRelation relation in
ParentRelations
)
1977
foreach (DataRelation rel in
ParentRelations
)
4036
DataRelationCollection dr =
ParentRelations
;
4357
for (int j = 0; j <
ParentRelations
.Count; j++)
4359
DataRelation relation =
ParentRelations
[j];
7238
for (int j = 0; j <
ParentRelations
.Count; j++)
7240
DataRelation relation =
ParentRelations
[j];
System\Data\DataTableCollection.cs (1)
405
if (table.ChildRelations.Count != 0 || table.
ParentRelations
.Count != 0)
System\Data\DataViewListener.cs (4)
113
((DataRelationCollection.DataTableRelationCollection)(table.
ParentRelations
)).RelationPropertyChanged += handlerParentRelation;
114
table.
ParentRelations
.CollectionChanged += handlerParentRelation;
136
((DataRelationCollection.DataTableRelationCollection)(table.
ParentRelations
)).RelationPropertyChanged -= handlerParentRelation;
137
table.
ParentRelations
.CollectionChanged -= handlerParentRelation;
System\Data\Filter\LookupNode.cs (1)
36
relations = table.
ParentRelations
;
System\Data\ForeignKeyConstraint.cs (1)
907
DataRelationCollection rels = Table!.
ParentRelations
;
System\Data\xmlsaver.cs (9)
510
if (table.
ParentRelations
.Count == 0)
515
for (int j = 0; j < table.
ParentRelations
.Count; j++)
517
if (table.
ParentRelations
[j].Nested)
519
if (table.
ParentRelations
[j].ParentTable == table)
1641
foreach (DataRelation rel in col.Table.
ParentRelations
)
2732
if (table.
ParentRelations
.Count == 0)
2737
for (int j = 0; j < table.
ParentRelations
.Count; j++)
2739
if (table.
ParentRelations
[j].Nested)
2741
if (table.
ParentRelations
[j].ParentTable == table)
System\Xml\XmlDataDocument.cs (1)
3063
if (dt.
ParentRelations
.Count == 0)