10 references to FindConstraint
System.Data.Common (10)
System\Data\ConstraintCollection.cs (2)
92
if (
FindConstraint
(constraint) is Constraint matchedConstraint)
783
if (
FindConstraint
(newConstraint) == null)
System\Data\DataTable.cs (4)
1691
if ((existingKey = (UniqueConstraint?)Constraints.
FindConstraint
(key)) != null)
1730
Debug.Assert(_primaryKey == null || Constraints.
FindConstraint
(_primaryKey) == _primaryKey, "PrimaryKey is not in ConstraintCollection");
2463
clone.Constraints.
FindConstraint
(clonedConstraint) is Constraint oldConstraint)
2472
clone.Constraints.
FindConstraint
(clonedConstraint) is Constraint oldConstraint)
System\Data\Merger.cs (1)
486
Constraint? cons = dest.Table!.Constraints.
FindConstraint
(dest);
System\Data\xmlsaver.cs (2)
453
UniqueConstraint? _constraint = (UniqueConstraint?)fk.RelatedTable.Constraints.
FindConstraint
(new UniqueConstraint("TEMP", fk.RelatedColumnsReference));
2087
UniqueConstraint? _constraint = (UniqueConstraint?)foreign.RelatedTable.Constraints.
FindConstraint
(new UniqueConstraint("TEMP", fields));
System\Data\XMLSchema.cs (1)
1418
UniqueConstraint? found = (UniqueConstraint?)key[0].Table!.Constraints.
FindConstraint
(new UniqueConstraint(name, key));