30 references to
System.Data.Common (30)
System\Data\ConstraintCollection.cs (1)
712Constraint c = this[index];
System\Data\DataColumn.cs (2)
745if (_table.Constraints[i].ContainsColumn(this)) 747throw ExceptionBuilder.ExpressionAndConstraint(this, _table.Constraints[i]);
System\Data\DataColumnCollection.cs (3)
513if (_table.Constraints[i].ContainsColumn(column)) 517throw ExceptionBuilder.CannotRemoveConstraint(_table.Constraints[i].ConstraintName, _table.Constraints[i].Table!.TableName);
System\Data\DataSet.cs (9)
1185if (constraints[j] is UniqueConstraint) 1190ForeignKeyConstraint foreign = (ForeignKeyConstraint)constraints[j]; 1196ds.Tables[i].Constraints.Add(constraints[j].Clone(ds)!); 3296if (cons[j] is ForeignKeyConstraint) 3298cons.Remove(cons[j]); 3339if (constraints[j] is ForeignKeyConstraint) 3341constraint = (ForeignKeyConstraint)constraints[j]; 3379if (constraints[j] is ForeignKeyConstraint) 3381constraint = (ForeignKeyConstraint)constraints[j];
System\Data\DataTable.cs (9)
531Constraint c = Constraints[i]; 2456ForeignKeyConstraint? foreign = Constraints[j] as ForeignKeyConstraint; 2457UniqueConstraint? unique = Constraints[j] as UniqueConstraint; 2465oldConstraint.ConstraintName = Constraints[j].ConstraintName; 2474oldConstraint.ConstraintName = Constraints[j].ConstraintName; 2486if (!clone.Constraints.Contains(Constraints[j].ConstraintName, true)) 2488ForeignKeyConstraint? foreign = Constraints[j] as ForeignKeyConstraint; 2489UniqueConstraint? unique = Constraints[j] as UniqueConstraint; 4193_constraintCollection[i].CheckConstraint(eRow, eAction);
System\Data\Merger.cs (1)
474Constraint src = table.Constraints[i];
System\Data\ProviderBase\SchemaMapping.cs (1)
1092if (unique.Equals(constraints[i]))
System\Data\xmlsaver.cs (3)
2001if (constraints[i] is UniqueConstraint unique) 2067else if (constraints[i] is ForeignKeyConstraint && genNested) 2069ForeignKeyConstraint foreign = (ForeignKeyConstraint)constraints[i];
System\Data\XMLSchema.cs (1)
1316if (fKey[0].Table!.Constraints[iExisting].ConstraintName != name)