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