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