2 instantiations of DataTableRelationCollection
System.Data.Common (2)
System\Data\DataTable.cs (2)
1183
_childRelationsCollection ??= new DataRelationCollection.
DataTableRelationCollection
(this, false);
1555
public DataRelationCollection ParentRelations => _parentRelationsCollection ??= new DataRelationCollection.
DataTableRelationCollection
(this, true);
12 references to DataTableRelationCollection
System.Data.Common (12)
System\Data\DataRelation.cs (4)
381
((DataRelationCollection.
DataTableRelationCollection
)(ParentTable.ChildRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
382
((DataRelationCollection.
DataTableRelationCollection
)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
387
((DataRelationCollection.
DataTableRelationCollection
)(ParentTable.ChildRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
388
((DataRelationCollection.
DataTableRelationCollection
)(ChildTable.ParentRelations)).OnRelationPropertyChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, this));
System\Data\DataRelationCollection.cs (4)
796
((
DataTableRelationCollection
)(relation.ParentTable.ChildRelations)).Add(relation); // Caching in ParentTable -> ChildRelations
797
((
DataTableRelationCollection
)(relation.ChildTable.ParentRelations)).Add(relation); // Caching in ChildTable -> ParentRelations
847
((
DataTableRelationCollection
)(relation.ParentTable.ChildRelations)).Remove(relation); // Remove Cache from ParentTable -> ChildRelations
848
((
DataTableRelationCollection
)(relation.ChildTable.ParentRelations)).Remove(relation); // Removing Cache from ChildTable -> ParentRelations
System\Data\DataViewListener.cs (4)
109
((DataRelationCollection.
DataTableRelationCollection
)(table.ChildRelations)).RelationPropertyChanged += handlerChildRelation;
113
((DataRelationCollection.
DataTableRelationCollection
)(table.ParentRelations)).RelationPropertyChanged += handlerParentRelation;
132
((DataRelationCollection.
DataTableRelationCollection
)(table.ChildRelations)).RelationPropertyChanged -= handlerChildRelation;
136
((DataRelationCollection.
DataTableRelationCollection
)(table.ParentRelations)).RelationPropertyChanged -= handlerParentRelation;