9 writes to ConstraintName
System.Data (9)
fx\src\data\System\Data\ConstraintCollection.cs (2)
125
constraint.
ConstraintName
= AssignName();
291
constraint.
ConstraintName
= AssignName();
fx\src\data\System\Data\DataRelationCollection.cs (1)
727
foreignKey.
ConstraintName
= relation.RelationName;
fx\src\data\System\Data\DataTable.cs (2)
2267
oldConstraint.
ConstraintName
= Constraints[j].ConstraintName;
2275
oldConstraint.
ConstraintName
= Constraints[j].ConstraintName;
fx\src\data\System\Data\ForeignKeyConstraint.cs (1)
723
ConstraintName
= relationName;
fx\src\data\System\Data\Merger.cs (1)
414
dest.
ConstraintName
= "";
fx\src\data\System\Data\UniqueConstraint.cs (1)
357
ConstraintName
= constraintName;
fx\src\data\System\Data\XMLSchema.cs (1)
1148
fkc.
ConstraintName
= name;
55 references to ConstraintName
System.Data (55)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
609
Str(uc.
ConstraintName
),
1298
New(typeof(ForeignKeyConstraint), new CodeExpression[]{Str(fkc.
ConstraintName
), parentColumns, childrenColumns})
fx\src\data\System\Data\Constraint.cs (3)
69
return
ConstraintName
;
128
throw ExceptionBuilder.ConstraintViolation(
ConstraintName
);
170
return
ConstraintName
;
fx\src\data\System\Data\ConstraintCollection.cs (11)
102
throw ExceptionBuilder.DuplicateConstraint(FindConstraint(constraint).
ConstraintName
);
124
if (constraint.
ConstraintName
.Length == 0)
127
RegisterName(constraint.
ConstraintName
);
290
if (constraint.
ConstraintName
.Length == 0)
293
RegisterName(constraint.
ConstraintName
);
347
UnregisterName(constraint.
ConstraintName
);
437
return (name == ((Constraint) List[index]).
ConstraintName
);
562
result = NamesEqual(constraint.
ConstraintName
, constraintName, false, table.Locale);
602
if (NamesEqual(name, ((Constraint)List[i]).
ConstraintName
, true, table.Locale) != 0) {
603
throw ExceptionBuilder.DuplicateConstraintName(((Constraint)List[i]).
ConstraintName
);
694
Add(constr.
ConstraintName
,parents,true);
fx\src\data\System\Data\ConstraintConverter.cs (2)
52
return new InstanceDescriptor(ctor, new object[] { constr.
ConstraintName
, constr.ColumnNames, constr.IsPrimaryKey });
59
return new InstanceDescriptor(ctor, new object[] { constr.
ConstraintName
, constr.ParentKey.Table.TableName, constr.ParentColumnNames,
fx\src\data\System\Data\DataColumnCollection.cs (2)
469
throw ExceptionBuilder.CannotRemoveConstraint(table.Constraints[i].
ConstraintName
, table.Constraints[i].Table.TableName);
478
throw ExceptionBuilder.CannotRemoveConstraint(constraint.
ConstraintName
, constraint.Table.TableName);
fx\src\data\System\Data\DataException.cs (5)
555
return _Argument(Res.GetString(Res.DataConstraint_NeededForForeignKeyConstraint, key.
ConstraintName
, fk.
ConstraintName
));
595
return _InvalidConstraint(Res.GetString(Res.DataConstraint_RemoveParentRow, constraint.
ConstraintName
));
654
return _Argument(Res.GetString(Res.DataColumn_ExpressionAndConstraint, column.ColumnName, constraint.
ConstraintName
));
1219
return _Argument(Res.GetString(Res.DataTable_InConstraint, table.TableName, constraint.
ConstraintName
));
fx\src\data\System\Data\DataTable.cs (6)
499
list.Add(uc.
ConstraintName
);
525
list.Add(fk.
ConstraintName
);
2267
oldConstraint.ConstraintName = Constraints[j].
ConstraintName
;
2275
oldConstraint.ConstraintName = Constraints[j].
ConstraintName
;
2285
if (! clone.Constraints.Contains(Constraints[j].
ConstraintName
, true)) {
5827
if (!destinationTable.Constraints.Contains(newFKC.
ConstraintName
))
fx\src\data\System\Data\ForeignKeyConstraint.cs (10)
206
string error = Res.GetString(Res.DataConstraint_ForeignKeyViolation,
ConstraintName
, ExceptionBuilder.KeysToString(childValues));
281
throw ExceptionBuilder.FailedCascadeDelete(
ConstraintName
);
370
throw ExceptionBuilder.FailedCascadeUpdate(
ConstraintName
);
394
throw ExceptionBuilder.FailedCascadeUpdate(
ConstraintName
);
453
throw ExceptionBuilder.FailedClearParentTable(table.TableName,
ConstraintName
, Table.TableName);
458
Debug.Assert(Table.DataSet != null, "Relation " +
ConstraintName
+ " isn't part of a DataSet, so this check shouldn't be happening.");
467
Debug.Assert(Table.DataSet != null, "ForeignKeyConstraint " +
ConstraintName
+ " isn't part of a DataSet, so this check shouldn't be happening.");
543
throw ExceptionBuilder.ForeignKeyViolation(
ConstraintName
, childKeyValues);
654
ForeignKeyConstraint clone = new ForeignKeyConstraint(
ConstraintName
,relatedColumns, columns);
689
ForeignKeyConstraint clone = new ForeignKeyConstraint(
ConstraintName
, relatedColumns, columns);
fx\src\data\System\Data\Merger.cs (2)
400
Res.GetString(Res.DataMerge_MissingConstraint, src.GetType().FullName, src.
ConstraintName
),
420
Res.GetString(Res.DataMerge_MissingConstraint, src.GetType().FullName, src.
ConstraintName
),
fx\src\data\System\Data\UniqueConstraint.cs (2)
281
UniqueConstraint clone = new UniqueConstraint(
ConstraintName
, columns);
303
UniqueConstraint clone = new UniqueConstraint(
ConstraintName
, columns);
fx\src\data\System\Data\xmlsaver.cs (9)
268
string name = constr.
ConstraintName
;
273
builder.Append(table.TableName).Append('_').Append(constr.
ConstraintName
);
1423
if (!unique.
ConstraintName
.StartsWith("Constraint", StringComparison.Ordinal))
1446
if (rel.RelationName != fk.
ConstraintName
)
1735
if (unique.
ConstraintName
!= unique.SchemaName)
1736
constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, unique.
ConstraintName
);
1852
if (foreign.
ConstraintName
!= foreign.SchemaName)
1853
constraint.SetAttribute(Keywords.MSD_CONSTRAINTNAME, Keywords.MSDNS, foreign.
ConstraintName
);
1862
if (foreign.
ConstraintName
!= rel.RelationName) {
fx\src\data\System\Data\XMLSchema.cs (1)
1115
if (fKey[0].Table.Constraints[iExisting].
ConstraintName
!= name)