2 types derived from DataRelationCollection
System.Data.Common (2)
System\Data\DataRelationCollection.cs (2)
522internal sealed class DataTableRelationCollection : DataRelationCollection 687internal sealed class DataSetRelationCollection : DataRelationCollection
38 references to DataRelationCollection
netstandard (1)
netstandard.cs (1)
493[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataRelationCollection))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
66[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.DataRelationCollection))]
System.Data.Common (36)
System\Data\DataColumn.cs (1)
1646DataRelationCollection rels = _table!.ParentRelations;
System\Data\DataRelation.cs (5)
346/// data set's <see cref='System.Data.DataRelationCollection'/>. 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\DataSet.cs (7)
45private readonly DataRelationCollection _relationCollection; 90_relationCollection = new DataRelationCollection.DataSetRelationCollection(this); 1012public DataRelationCollection Relations => _relationCollection; 1096((DataRelationCollection.DataSetRelationCollection)Relations).FinishInitRelations(); 1191DataRelationCollection rels = Relations; 1412DataRelationCollection relations = row.Table.ParentRelations; 2944internal static DataRelationCollection GetParentRelations(DataTable table) => table.ParentRelations;
System\Data\DataTable.cs (7)
57internal DataRelationCollection? _parentRelationsCollection; 58internal DataRelationCollection? _childRelationsCollection; 1177public DataRelationCollection ChildRelations => 1178_childRelationsCollection ??= new DataRelationCollection.DataTableRelationCollection(this, false); 1550public DataRelationCollection ParentRelations => _parentRelationsCollection ??= new DataRelationCollection.DataTableRelationCollection(this, true); 4031DataRelationCollection dr = 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;
System\Data\Filter\AggregateNode.cs (1)
82DataRelationCollection relations;
System\Data\Filter\LookupNode.cs (1)
35DataRelationCollection relations;
System\Data\ForeignKeyConstraint.cs (1)
907DataRelationCollection rels = Table!.ParentRelations;
System\Data\ProviderBase\SchemaMapping.cs (1)
1210DataRelationCollection relations = _dataSet.Relations;
System\Data\XDRSchema.cs (1)
611DataRelationCollection childRelations = table.ChildRelations;
System\Data\xmlsaver.cs (2)
1796DataRelationCollection childRelations = table.ChildRelations; 1913DataRelationCollection childRelations = table.ChildRelations;
System\Data\XMLSchema.cs (4)
434DataRelationCollection rels = _ds!.Relations; 812DataRelationCollection childRelations = dt.ChildRelations; 949DataRelationCollection childRelations = table.ChildRelations; 1705DataRelationCollection childRelations = table.ChildRelations;
System\Xml\XmlDataDocument.cs (1)
2241foreach (DataRelation relTemp in (DataRelationCollection)oRelationsCollection!)