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)
1647DataRelationCollection 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; 97_relationCollection = new DataRelationCollection.DataSetRelationCollection(this); 1022public DataRelationCollection Relations => _relationCollection; 1106((DataRelationCollection.DataSetRelationCollection)Relations).FinishInitRelations(); 1201DataRelationCollection rels = Relations; 1422DataRelationCollection relations = row.Table.ParentRelations; 3000internal static DataRelationCollection GetParentRelations(DataTable table) => table.ParentRelations;
System\Data\DataTable.cs (7)
57internal DataRelationCollection? _parentRelationsCollection; 58internal DataRelationCollection? _childRelationsCollection; 1182public DataRelationCollection ChildRelations => 1183_childRelationsCollection ??= new DataRelationCollection.DataTableRelationCollection(this, false); 1555public DataRelationCollection ParentRelations => _parentRelationsCollection ??= new DataRelationCollection.DataTableRelationCollection(this, true); 4036DataRelationCollection 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)
1806DataRelationCollection childRelations = table.ChildRelations; 1923DataRelationCollection childRelations = table.ChildRelations;
System\Data\XMLSchema.cs (4)
434DataRelationCollection rels = _ds!.Relations; 814DataRelationCollection childRelations = dt.ChildRelations; 952DataRelationCollection childRelations = table.ChildRelations; 1713DataRelationCollection childRelations = table.ChildRelations;
System\Xml\XmlDataDocument.cs (1)
2212foreach (DataRelation relTemp in (DataRelationCollection)oRelationsCollection!)