2 overrides of
System.Data.Common (2)
System\Data\DataRelationCollection.cs (2)
555public override DataRelation this[int index] 736public override DataRelation this[int index]
55 references to
System.Data.Common (55)
System\Data\ConstraintCollection.cs (4)
388DataRelation rel = Table.ChildRelations[i]; 398DataRelation rel = Table.ParentRelations[i]; 429_table.ParentRelations[i].SetChildKeyConstraint(null); 433_table.ChildRelations[i].SetParentKeyConstraint(null);
System\Data\DataColumn.cs (2)
1652key = rels[i].ChildKey; 1664key = rels[i].ParentKey;
System\Data\DataColumnCollection.cs (4)
491if (_table.ParentRelations[i].ChildKey.ContainsColumn(column)) 496throw ExceptionBuilder.CannotRemoveChildKey(_table.ParentRelations[i].RelationName); 502if (_table.ChildRelations[i].ParentKey.ContainsColumn(column)) 507throw ExceptionBuilder.CannotRemoveChildKey(_table.ChildRelations[i].RelationName);
System\Data\DataRelationCollection.cs (4)
265_inTransition = this[i]; 405if (NamesEqual(name, this[i].RelationName, true, locale) != 0) 407throw ExceptionBuilder.DuplicateRelation(this[i].RelationName); 455DataRelation dr = this[index];
System\Data\DataSet.cs (4)
1204DataRelation rel = rels[i].Clone(ds); 1426DataRow[] relatedRows = row.GetParentRows(relations[relatedIndex], DataRowVersion.Current); 3325relation = Relations[i]; 3365relation = Relations[i];
System\Data\DataTable.cs (5)
4359DataRelation relation = ParentRelations[j]; 4369DataRelation relation = ChildRelations[j]; 4918props[columnsCount + i] = new DataRelationPropertyDescriptor(ChildRelations[i]); 7240DataRelation relation = ParentRelations[j]; 7272DataRelation relation = ChildRelations[j];
System\Data\ForeignKeyConstraint.cs (2)
911if (rels[i].ChildKeyConstraint == this) 913return rels[i];
System\Data\Merger.cs (2)
81MergeRelation(source.Relations[i]); 534destRelation = _dataSet.Relations[iDest];
System\Data\XDRSchema.cs (3)
615if (!childRelations[j].Nested) 618if (_tableChild == childRelations[j].ChildTable) 619relation = childRelations[j];
System\Data\xmlsaver.cs (13)
368if (_PropsNotEmpty(ds.Relations[r]._extendedProperties)) 517if (table.ParentRelations[j].Nested) 519if (table.ParentRelations[j].ParentTable == table) 770rels[i] = ds.Relations[i]; 1809if (childRelations[j].Nested && childRelations[j].ParentKey.ColumnsReference.Length == 1 && childRelations[j].ParentKey.ColumnsReference[0] == col) 1929if (!childRelations[j].Nested) 1932DataTable childTable = childRelations[j].ChildTable; 1967if (childRelations[j].ChildKeyConstraint != null) 1976nodeApp.AppendChild(HandleRelation(childRelations[j], dc)); 2739if (table.ParentRelations[j].Nested) 2741if (table.ParentRelations[j].ParentTable == table)
System\Data\XMLSchema.cs (12)
445if (string.Equals(rels[i].RelationName, strName, StringComparison.Ordinal)) 818if (childRelations[j].Nested && dt.Namespace == childRelations[j].ChildTable.Namespace) 821childRelations[j].ChildTable._tableNamespace = null; 955if (!childRelations[j].Nested) 958if (child == childRelations[j].ChildTable) 959relation = childRelations[j]; 1336if (fKey[0].Table!.DataSet!.Relations[iExisting].RelationName != relName) 1359relation = fKey[0].Table!.DataSet!.Relations[iExisting]; 1716if (!childRelations[j].Nested) 1719if (_tableChild == childRelations[j].ChildTable) 1720relation = childRelations[j];