36 references to
System.Data (36)
fx\src\data\System\Data\CodeGen\datacache.cs (5)
494
if (!(table.Constraints
[
j] is UniqueConstraint)) {
498
if (!(((UniqueConstraint)(table.Constraints
[
j])).IsPrimaryKey)) {
502
DataColumn[] index = ((UniqueConstraint)table.Constraints
[
j]).ColumnsReference;
595
if (!(table.Constraints
[
i] is UniqueConstraint)) {
599
UniqueConstraint uc = (UniqueConstraint)(table.Constraints
[
i]);
fx\src\data\System\Data\ConstraintCollection.cs (1)
639
Constraint c = this
[
index];
fx\src\data\System\Data\DataColumn.cs (2)
758
if (table.Constraints
[
i].ContainsColumn(this)) {
759
throw ExceptionBuilder.ExpressionAndConstraint(this, table.Constraints
[
i]);
fx\src\data\System\Data\DataColumnCollection.cs (3)
465
if (table.Constraints
[
i].ContainsColumn(column))
469
throw ExceptionBuilder.CannotRemoveConstraint(table.Constraints
[
i].ConstraintName, table.Constraints
[
i].Table.TableName);
fx\src\data\System\Data\DataSet.cs (9)
1135
if (constraints
[
j] is UniqueConstraint)
1137
ForeignKeyConstraint foreign = constraints
[
j] as ForeignKeyConstraint;
1140
ds.Tables[i].Constraints.Add(constraints
[
j].Clone(ds));
3011
if (cons
[
j] is ForeignKeyConstraint) {
3012
cons.Remove(cons
[
j]);
3045
if (constraints
[
j] is ForeignKeyConstraint) {
3046
constraint = (ForeignKeyConstraint)constraints
[
j];
3075
if (constraints
[
j] is ForeignKeyConstraint) {
3076
constraint = (ForeignKeyConstraint)constraints
[
j];
fx\src\data\System\Data\DataTable.cs (9)
488
Constraint c = Constraints
[
i];
2260
ForeignKeyConstraint foreign = Constraints
[
j] as ForeignKeyConstraint;
2261
UniqueConstraint unique = Constraints
[
j] as UniqueConstraint;
2267
oldConstraint.ConstraintName = Constraints
[
j].ConstraintName;
2275
oldConstraint.ConstraintName = Constraints
[
j].ConstraintName;
2285
if (! clone.Constraints.Contains(Constraints
[
j].ConstraintName, true)) {
2286
ForeignKeyConstraint foreign = Constraints
[
j] as ForeignKeyConstraint;
2287
UniqueConstraint unique = Constraints
[
j] as UniqueConstraint;
3773
constraintCollection
[
i].CheckConstraint(eRow, eAction);
fx\src\data\System\Data\Merger.cs (1)
395
Constraint src = table.Constraints
[
i];
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
930
if (unique.Equals(constraints
[
i])) {
fx\src\data\System\Data\xmlsaver.cs (4)
1717
if (constraints
[
i] is UniqueConstraint) {
1719
UniqueConstraint unique = (UniqueConstraint)constraints
[
i];
1778
else if (constraints
[
i] is ForeignKeyConstraint && genNested) {
1779
ForeignKeyConstraint foreign = (ForeignKeyConstraint)constraints
[
i];
fx\src\data\System\Data\XMLSchema.cs (1)
1115
if (fKey[0].Table.Constraints
[
iExisting].ConstraintName != name)