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