26 references to RelatedTable
System.Data.Common (26)
System\Data\ConstraintCollection.cs (2)
120UniqueConstraint? key = fk.RelatedTable.Constraints.FindKeyConstraint(fk.RelatedColumnsReference); 129fk.RelatedTable.Constraints.Add(key);
System\Data\ConstraintEnumerator.cs (1)
108((constraint is ForeignKeyConstraint) && (((ForeignKeyConstraint)constraint).RelatedTable == _table));
System\Data\DataSet.cs (3)
1191if (foreign.Table == foreign.RelatedTable) 3342if (constraint.Table!.CaseSensitive != constraint.RelatedTable.CaseSensitive) 3382if (constraint.Table!.Locale.LCID != constraint.RelatedTable.Locale.LCID)
System\Data\DataTable.cs (6)
555bool shouldSerialize = allConstraints || (fk.Table == this && fk.RelatedTable == this); 560parentInfo[0] = allConstraints ? DataSet!.Tables.IndexOf(fk.RelatedTable) : 0; 2460if (foreign.Table == foreign.RelatedTable) 2492if (foreign.Table == foreign.RelatedTable && 6605if (fkc.Table != fkc.RelatedTable) 6607if (tableList.Contains(fkc.Table!) && tableList.Contains(fkc.RelatedTable))
System\Data\DataTableCollection.cs (2)
417if (constraint.Table == table && constraint.RelatedTable == table) // we can go with (constraint.Table == constraint.RelatedTable) 434if (constraint.Table == table && constraint.RelatedTable == table)
System\Data\ForeignKeyConstraint.cs (6)
151if (Table.Locale.LCID != RelatedTable.Locale.LCID || Table.CaseSensitive != RelatedTable.CaseSensitive) 707iDest = destination.Tables.IndexOf(RelatedTable.TableName); 711iDest = destination.Tables.IndexOf(RelatedTable.TableName, RelatedTable.Namespace, false); // pass false for last param 759Debug.Assert(Table == RelatedTable, "We call this clone just if we have the same datatable as parent and child ");
System\Data\xmlsaver.cs (6)
292if (!_tables.Contains(((ForeignKeyConstraint)constr).RelatedTable)) 453UniqueConstraint? _constraint = (UniqueConstraint?)fk.RelatedTable.Constraints.FindConstraint(new UniqueConstraint("TEMP", fk.RelatedColumnsReference)); 2073if (!_tables.Contains(foreign.RelatedTable) || !_tables.Contains(foreign.Table)) 2087UniqueConstraint? _constraint = (UniqueConstraint?)foreign.RelatedTable.Constraints.FindConstraint(new UniqueConstraint("TEMP", fields)); 2098selector.SetAttribute(Keywords.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName); 2140if ((_ds == null) || (_ds.Tables.InternalIndexOf(foreign.RelatedTable.TableName) == -3)) // if there is a conflicting name/namespace only