11 references to FindConstraint
System.Data (11)
fx\src\data\System\Data\ConstraintCollection.cs (3)
101
if (
FindConstraint
(constraint) != null) {
102
throw ExceptionBuilder.DuplicateConstraint(
FindConstraint
(constraint).ConstraintName);
699
if (
FindConstraint
(newConstraint) == null)
fx\src\data\System\Data\DataTable.cs (4)
1574
if ((existingKey = (UniqueConstraint)Constraints.
FindConstraint
(key)) != null) {
1606
Debug.Assert(Constraints.
FindConstraint
(primaryKey) == primaryKey, "PrimaryKey is not in ConstraintCollection");
2265
Constraint oldConstraint = clone.Constraints.
FindConstraint
(clonedConstraint);
2273
Constraint oldConstraint = clone.Constraints.
FindConstraint
(clonedConstraint);
fx\src\data\System\Data\Merger.cs (1)
405
Constraint cons = dest.Table.Constraints.
FindConstraint
(dest);
fx\src\data\System\Data\xmlsaver.cs (2)
391
UniqueConstraint _constraint = (UniqueConstraint) fk.RelatedTable.Constraints.
FindConstraint
( new UniqueConstraint( "TEMP", fk.RelatedColumnsReference));
1796
UniqueConstraint _constraint = (UniqueConstraint) foreign.RelatedTable.Constraints.
FindConstraint
( new UniqueConstraint( "TEMP", fields));
fx\src\data\System\Data\XMLSchema.cs (1)
1207
UniqueConstraint found = (UniqueConstraint) key[0].Table.Constraints.
FindConstraint
(new UniqueConstraint(name, key));