Base:
property
Table
System.Data.Constraint.Table
35 references to Table
System.Data.Common (35)
System\Data\ConstraintEnumerator.cs (1)
94
((constraint is ForeignKeyConstraint) && (((ForeignKeyConstraint)constraint).
Table
== _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);
567
childInfo[0] = allConstraints ? DataSet!.Tables.IndexOf(fk.
Table
) : 0; //Since the constraint is on the current table, this is the child table.
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 (21)
147
if (
Table
!= constraints.Table)
151
if (
Table
.Locale.LCID != RelatedTable.Locale.LCID ||
Table
.CaseSensitive != RelatedTable.CaseSensitive)
202
if (
Table
!.DataSet == null || !
Table
.DataSet.EnforceConstraints)
405
Debug.Assert(
Table
?.DataSet != null && row.Table.DataSet != null);
413
if (!
Table
.DataSet._fInReadXml && IsKeyNull(currentKey))
498
Debug.Assert(
Table
?.DataSet != null);
499
if (
Table
.DataSet.EnforceConstraints &&
Table
.Rows.Count > 0)
501
throw ExceptionBuilder.FailedClearParentTable(table.TableName, ConstraintName,
Table
.TableName);
507
Debug.Assert(
Table
?.DataSet != null, $"Relation {ConstraintName} isn't part of a DataSet, so this check shouldn't be happening.");
508
if (!
Table
.DataSet.EnforceConstraints)
520
Debug.Assert(
Table
?.DataSet != null, $"ForeignKeyConstraint {ConstraintName} isn't part of a DataSet, so this check shouldn't be happening.");
568
Table
!.DataSet != null &&
Table
.DataSet.EnforceConstraints &&
691
iDest = destination.Tables.IndexOf(
Table
!.TableName);
695
iDest = destination.Tables.IndexOf(
Table
!.TableName,
Table
.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 ");
907
DataRelationCollection rels =
Table
!.ParentRelations;
System\Data\xmlsaver.cs (2)
2073
if (!_tables.Contains(foreign.RelatedTable) || !_tables.Contains(foreign.
Table
))
2141
constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.
Table
!.Namespace);