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