48 references to Relations
System.Data (48)
fx\src\data\System\Data\CodeGen\datacache.cs (3)
1025for (int i = 0; i < dataSet.Relations.Count; i++) { 1027dataSetClass.Members.Add(FieldDecl(typeof(DataRelation), RelationFieldName(dataSet.Relations[i]))); 1317foreach(DataRelation relation in dataSet.Relations) {
fx\src\data\System\Data\DataRelation.cs (3)
385dataSet.Relations.RegisterName(value); 387dataSet.Relations.UnregisterName(relationName); 526((ChildTable.NestedParentsCount > 0) && ! (ChildTable.DataSet.Relations.Contains(this.RelationName))))) {
fx\src\data\System\Data\DataRelationCollection.cs (2)
573GetDataSet().Relations.Add(relation); 617GetDataSet().Relations.Remove(relation);
fx\src\data\System\Data\DataRowView.cs (1)
95else if (dataView.Table.DataSet != null && dataView.Table.DataSet.Relations.Contains(property)) {
fx\src\data\System\Data\DataSet.cs (13)
449foreach (DataRelation rel in Relations) { 508Relations.Add(rel); 920/// Indicates whether <see cref='Relations'/> property should be persisted. 929/// Resets the <see cref='System.Data.DataSet.Relations'/> property to its default state. 934Relations.Clear(); 1069((DataRelationCollection.DataSetRelationCollection)Relations).FinishInitRelations(); 1145DataRelationCollection rels = Relations; 1149ds.Relations.Add(rel); 3021Relations.Clear(); 3034for (int i = 0; i < Relations.Count; i++) { 3035relation = Relations[i]; 3064for (int i = 0; i < Relations.Count; i++) { 3065relation = Relations[i];
fx\src\data\System\Data\DataTable.cs (2)
5835if (!this.DataSet.Relations.Contains(rel.RelationName)) 5836this.DataSet.Relations.Add(rel.Clone(this.DataSet));
fx\src\data\System\Data\DataViewManager.cs (3)
41this.dataSet.Relations.CollectionChanged += new CollectionChangeEventHandler(RelationCollectionChanged); 68this.dataSet.Relations.CollectionChanged -= new CollectionChangeEventHandler(RelationCollectionChanged); 73this.dataSet.Relations.CollectionChanged += new CollectionChangeEventHandler(RelationCollectionChanged);
fx\src\data\System\Data\Merger.cs (5)
79for (int i = 0; i < source.Relations.Count; i++) { 80MergeRelation(source.Relations[i]); 440int iDest = dataSet.Relations.InternalIndexOf(relation.RelationName); 444destRelation = dataSet.Relations[iDest]; 507dataSet.Relations.Add(destRelation);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
1037DataRelationCollection relations = _dataSet.Relations;
fx\src\data\System\Data\XDRSchema.cs (1)
610_tableChild.DataSet.Relations.Add(relation);
fx\src\data\System\Data\xmlsaver.cs (5)
320for(int r = 0; r < ds.Relations.Count; r ++) { 321if(_PropsNotEmpty(ds.Relations[r].extendedProperties)) { 656rels = new DataRelation[ds.Relations.Count]; 657for (int i = 0 ; i < ds.Relations.Count ; i++) { 658rels[i] = ds.Relations[i];
fx\src\data\System\Data\XMLSchema.cs (7)
375DataRelationCollection rels = _ds.Relations; 441_ds.Relations.Add(relation); 1130int iExisting = fKey[0].Table.DataSet.Relations.InternalIndexOf(relName); 1132if (fKey[0].Table.DataSet.Relations[iExisting].RelationName != relName) 1139pKey[0].Table.DataSet.Relations.Add(relation); 1151relation = fKey[0].Table.DataSet.Relations[iExisting]; 1517_tableChild.DataSet.Relations.Add(relation);
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
252dataSet.Relations.CollectionChanging += new CollectionChangeEventHandler( this.OnDataSetRelationsChanging ); 265foreach ( DataRelation rel in dataSet.Relations ) {