26 references to RelatedTable
System.Data (26)
fx\src\data\System\Data\ConstraintCollection.cs (2)
122
UniqueConstraint key = fk.
RelatedTable
.Constraints.FindKeyConstraint(fk.RelatedColumnsReference);
130
fk.
RelatedTable
.Constraints.Add(key);
fx\src\data\System\Data\ConstraintEnumerator.cs (1)
115
return((constraint is ForeignKeyConstraint) && (((ForeignKeyConstraint)constraint).
RelatedTable
== table));
fx\src\data\System\Data\DataSet.cs (3)
1138
if (foreign.Table == foreign.
RelatedTable
)
3047
if (constraint.Table.CaseSensitive != constraint.
RelatedTable
.CaseSensitive)
3077
if (constraint.Table.Locale.LCID != constraint.
RelatedTable
.Locale.LCID)
fx\src\data\System\Data\DataTable.cs (6)
508
bool shouldSerialize = (allConstraints == true) || (fk.Table == this && fk.
RelatedTable
== this);
512
parentInfo[0] = allConstraints ? this.DataSet.Tables.IndexOf(fk.
RelatedTable
) : 0;
2263
if (foreign.Table == foreign.
RelatedTable
) {
2289
if (foreign.Table == foreign.
RelatedTable
) {
5824
if (fkc.Table != fkc.
RelatedTable
) {
5825
if (tableList.Contains(fkc.Table) && tableList.Contains(fkc.
RelatedTable
)) {
fx\src\data\System\Data\DataTableCollection.cs (2)
398
if (constraint.Table == table && constraint.
RelatedTable
== table) // we can go with (constraint.Table == constraint.RelatedTable)
408
if (constraint.Table == table && constraint.
RelatedTable
== table) // bug 97670
fx\src\data\System\Data\ForeignKeyConstraint.cs (6)
177
if (Table.Locale.LCID !=
RelatedTable
.Locale.LCID || Table.CaseSensitive !=
RelatedTable
.CaseSensitive)
628
iDest = destination.Tables.IndexOf(
RelatedTable
.TableName);
631
iDest = destination.Tables.IndexOf(
RelatedTable
.TableName,
RelatedTable
.Namespace, false);// pass false for last param
669
Debug.Assert(this.Table == this.
RelatedTable
, "We call this clone just if we have the same datatable as parent and child ");
fx\src\data\System\Data\xmlsaver.cs (6)
261
if (!_tables.Contains((DataTable)(((ForeignKeyConstraint)constr).
RelatedTable
))) {
391
UniqueConstraint _constraint = (UniqueConstraint) fk.
RelatedTable
.Constraints.FindConstraint( new UniqueConstraint( "TEMP", fk.RelatedColumnsReference));
1782
if (!_tables.Contains(foreign.
RelatedTable
) || !_tables.Contains(foreign.Table))
1796
UniqueConstraint _constraint = (UniqueConstraint) foreign.
RelatedTable
.Constraints.FindConstraint( new UniqueConstraint( "TEMP", fields));
1806
selector.SetAttribute(Keywords.XSD_XPATH, ".//"+xpathprefix+ foreign.
RelatedTable
.EncodedTableName);
1842
if ((_ds == null) || (_ds.Tables.InternalIndexOf(foreign.
RelatedTable
.TableName) == -3)) // if there is a conflicting name/namespace only