23 references to Add
System.Data.Common (23)
System\Data\ConstraintCollection.cs (10)
129fk.RelatedTable.Constraints.Add(key); 155Add(constraint); 168Add(constraint); 183Add(constraint); 194Add(constraint); 213Add(constr); 763Add(constr); 784Add(newConstraint); 791Add(constr); 818Add(newConstraint);
System\Data\DataColumn.cs (2)
1041_table!.Constraints.Add(key); 1256_table.Constraints.Add(constraint);
System\Data\DataRelationCollection.cs (1)
811relation.ChildTable.Constraints.Add(foreignKey = new ForeignKeyConstraint(relation.ParentColumnsReference, relation.ChildColumnsReference));
System\Data\DataSet.cs (1)
1196ds.Tables[i].Constraints.Add(constraints[j].Clone(ds)!);
System\Data\DataTable.cs (5)
620Constraints.Add(uc); 1725Constraints.Add(key); 2496clone.Constraints.Add(newforeign); 2501clone.Constraints.Add(unique.Clone(clone)!); 6612destinationTable.Constraints.Add(newFKC); // we know that the dest table is already in the table
System\Data\Merger.cs (2)
494dest.Table.Constraints.Add(dest); 500dest.Table.Constraints.Add(dest);
System\Data\ProviderBase\SchemaMapping.cs (1)
1100constraints.Add(unique);
System\Data\XMLSchema.cs (1)
1323fKey[0].Table!.Constraints.Add(fkc);