Base:
property
Table
System.Data.Constraint.Table
33 references to Table
System.Data (33)
fx\src\data\System\Data\ConstraintEnumerator.cs (1)
102
return((constraint is ForeignKeyConstraint) && (((ForeignKeyConstraint)constraint).
Table
== 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);
518
childInfo[0] = allConstraints ? this.DataSet.Tables.IndexOf(fk.
Table
) : 0 ; //Since the constraint is on the current table, this is the child table.
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 (19)
175
if (
Table
!= constraints.Table)
177
if (
Table
.Locale.LCID != RelatedTable.Locale.LCID ||
Table
.CaseSensitive != RelatedTable.CaseSensitive)
218
if (
Table
.DataSet == null || !
Table
.DataSet.EnforceConstraints)
382
if (!
Table
.DataSet.fInReadXml && IsKeyNull(currentKey)) {
452
if (
Table
.DataSet.EnforceConstraints &&
Table
.Rows.Count > 0) {
453
throw ExceptionBuilder.FailedClearParentTable(table.TableName, ConstraintName,
Table
.TableName);
458
Debug.Assert(
Table
.DataSet != null, "Relation " + ConstraintName + " isn't part of a DataSet, so this check shouldn't be happening.");
459
if (!
Table
.DataSet.EnforceConstraints)
467
Debug.Assert(
Table
.DataSet != null, "ForeignKeyConstraint " + ConstraintName + " isn't part of a DataSet, so this check shouldn't be happening.");
503
Table
.DataSet != null &&
Table
.DataSet.EnforceConstraints &&
617
iDest = destination.Tables.IndexOf(
Table
.TableName);
620
iDest = destination.Tables.IndexOf(
Table
.TableName,
Table
.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 ");
810
DataRelationCollection rels =
Table
.ParentRelations;
fx\src\data\System\Data\xmlsaver.cs (2)
1782
if (!_tables.Contains(foreign.RelatedTable) || !_tables.Contains(foreign.
Table
))
1843
constraint.SetAttribute (Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.
Table
.Namespace);