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)
1563
var parentRelations = new DataRelation[Table!.
ParentRelations
.Count];
1564
Table.
ParentRelations
.CopyTo(parentRelations, 0);
1646
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)
1412
DataRelationCollection relations = row.Table.
ParentRelations
;
2944
internal static DataRelationCollection GetParentRelations(DataTable table) => table.
ParentRelations
;
System\Data\DataTable.cs (9)
1103
foreach (DataRelation rel in
ParentRelations
)
1584
foreach (DataRelation relation in
ParentRelations
)
1606
foreach (DataRelation relation in
ParentRelations
)
1972
foreach (DataRelation rel in
ParentRelations
)
4031
DataRelationCollection dr =
ParentRelations
;
4352
for (int j = 0; j <
ParentRelations
.Count; j++)
4354
DataRelation relation =
ParentRelations
[j];
7179
for (int j = 0; j <
ParentRelations
.Count; j++)
7181
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)
1632
foreach (DataRelation rel in col.Table.
ParentRelations
)
2717
if (table.
ParentRelations
.Count == 0)
2722
for (int j = 0; j < table.
ParentRelations
.Count; j++)
2724
if (table.
ParentRelations
[j].Nested)
2726
if (table.
ParentRelations
[j].ParentTable == table)
System\Xml\XmlDataDocument.cs (1)
3128
if (dt.
ParentRelations
.Count == 0)