14 instantiations of UniqueConstraint
System.Data (14)
fx\src\data\System\Data\ConstraintCollection.cs (4)
129
key = new
UniqueConstraint
(fk.RelatedColumnsReference);
152
UniqueConstraint constraint = new
UniqueConstraint
(name, columns);
164
UniqueConstraint constraint = new
UniqueConstraint
(name, column);
698
UniqueConstraint newConstraint = new
UniqueConstraint
(constr.constraintName, parents);
fx\src\data\System\Data\DataColumn.cs (2)
1057
UniqueConstraint key = new
UniqueConstraint
(this);
1255
UniqueConstraint constraint = new
UniqueConstraint
(this);
fx\src\data\System\Data\DataTable.cs (2)
563
UniqueConstraint uc = new
UniqueConstraint
(constraintName, keyColumns, isPrimaryKey);
1564
key = new
UniqueConstraint
(newValue);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
926
UniqueConstraint unique = new
UniqueConstraint
("", keys);
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 (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));
95 references to UniqueConstraint
System.Data (95)
fx\src\data\System\Data\CodeGen\datacache.cs (7)
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]);
607
New(typeof(
UniqueConstraint
),
fx\src\data\System\Data\ConstraintCollection.cs (28)
111
if (constraint is
UniqueConstraint
) {
112
if (((
UniqueConstraint
)constraint).bPrimaryKey) {
117
AddUniqueConstraint((
UniqueConstraint
)constraint);
122
UniqueConstraint
key = fk.RelatedTable.Constraints.FindKeyConstraint(fk.RelatedColumnsReference);
139
if (constraint is
UniqueConstraint
) {
140
if (((
UniqueConstraint
)constraint).bPrimaryKey) {
141
Table.PrimaryKey = ((
UniqueConstraint
)constraint).ColumnsReference;
147
/// <para>Constructs a new <see cref='System.Data.
UniqueConstraint
'/> using the
152
UniqueConstraint
constraint = new UniqueConstraint(name, columns);
160
/// <para>Constructs a new <see cref='System.Data.
UniqueConstraint
'/> using the
164
UniqueConstraint
constraint = new UniqueConstraint(name, column);
211
private void AddUniqueConstraint(
UniqueConstraint
constraint) {
240
UniqueConstraint
unique = (
UniqueConstraint
) constraint;
350
if (constraint is
UniqueConstraint
) {
356
((
UniqueConstraint
)constraint).ConstraintIndexClear();
467
internal
UniqueConstraint
FindKeyConstraint(DataColumn[] columns) {
470
UniqueConstraint
constraint = (List[i] as
UniqueConstraint
);
481
internal
UniqueConstraint
FindKeyConstraint(DataColumn column) {
484
UniqueConstraint
constraint = (List[i] as
UniqueConstraint
);
626
if (constraint is
UniqueConstraint
&& ((
UniqueConstraint
)constraint).IsPrimaryKey) {
676
if (delayLoadingConstraints[i] is
UniqueConstraint
) {
680
UniqueConstraint
constr = (
UniqueConstraint
) delayLoadingConstraints[i];
698
UniqueConstraint
newConstraint = new UniqueConstraint(constr.constraintName, parents);
fx\src\data\System\Data\ConstraintConverter.cs (4)
48
if (value is
UniqueConstraint
) {
49
UniqueConstraint
constr = (
UniqueConstraint
)value;
50
System.Reflection.ConstructorInfo ctor = typeof(
UniqueConstraint
).GetConstructor(new Type[] { typeof(string), typeof(string[]), typeof(bool) } );
fx\src\data\System\Data\DataColumn.cs (7)
1042
UniqueConstraint
key = table.Constraints.FindKeyConstraint(this);
1057
UniqueConstraint
key = new UniqueConstraint(this);
1132
UniqueConstraint
constraint = table.Constraints.FindKeyConstraint(this);
1233
UniqueConstraint
oldConstraint = null;
1239
UniqueConstraint
o = (e.Current as
UniqueConstraint
);
1255
UniqueConstraint
constraint = new UniqueConstraint(this);
fx\src\data\System\Data\DataException.cs (1)
554
static public Exception NeededForForeignKeyConstraint(
UniqueConstraint
key, ForeignKeyConstraint fk) {
fx\src\data\System\Data\DataRelation.cs (5)
59
private
UniqueConstraint
parentKeyConstraint = null;
561
public virtual
UniqueConstraint
ParentKeyConstraint {
568
internal void SetParentKeyConstraint(
UniqueConstraint
value) {
769
UniqueConstraint
unique = (
UniqueConstraint
) cs;
fx\src\data\System\Data\DataRelationCollection.cs (1)
739
UniqueConstraint
key = relation.ParentTable.Constraints.FindKeyConstraint(relation.ParentColumnsReference);
fx\src\data\System\Data\DataSet.cs (1)
1135
if (constraints[j] is
UniqueConstraint
)
fx\src\data\System\Data\DataTable.cs (15)
105
internal
UniqueConstraint
primaryKey;
490
UniqueConstraint
uc = c as
UniqueConstraint
;
563
UniqueConstraint
uc = new UniqueConstraint(constraintName, keyColumns, isPrimaryKey);
1236
if (constr is
UniqueConstraint
)
1531
UniqueConstraint
primayKeyConstraint = primaryKey;
1539
UniqueConstraint
key = null;
1540
UniqueConstraint
existingKey = null;
1574
if ((existingKey = (
UniqueConstraint
)Constraints.FindConstraint(key)) != null) {
1579
UniqueConstraint
oldKey = primaryKey;
2261
UniqueConstraint
unique = Constraints[j] as
UniqueConstraint
;
2272
UniqueConstraint
clonedConstraint = unique.Clone(clone);
2287
UniqueConstraint
unique = Constraints[j] as
UniqueConstraint
;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
926
UniqueConstraint
unique = new UniqueConstraint("", keys);
fx\src\data\System\Data\UniqueConstraint.cs (13)
34
/// <para>Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the specified name and
44
/// <para>Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the specified <see cref='System.Data.DataColumn'/>.</para>
53
/// <para>Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the specified name and array
62
/// Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the given array of <see cref='System.Data.DataColumn'/>
82
/// <para>Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the specified name and
93
/// <para>Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the specified <see cref='System.Data.DataColumn'/>.</para>
103
/// <para>Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the specified name and array
113
/// Initializes a new instance of the <see cref='System.Data.
UniqueConstraint
'/> with the given array of <see cref='System.Data.DataColumn'/>
281
UniqueConstraint
clone = new UniqueConstraint(ConstraintName, columns);
291
internal
UniqueConstraint
Clone(DataTable table) {
303
UniqueConstraint
clone = new UniqueConstraint(ConstraintName, columns);
366
if (!(key2 is
UniqueConstraint
))
369
return Key.ColumnsEqual(((
UniqueConstraint
)key2).Key);
fx\src\data\System\Data\xmlsaver.cs (10)
391
UniqueConstraint
_constraint = (
UniqueConstraint
) fk.RelatedTable.Constraints.FindConstraint( new UniqueConstraint( "TEMP", fk.RelatedColumnsReference));
403
UniqueConstraint
unique = (
UniqueConstraint
) cs;
1421
internal static bool AutoGenerated(
UniqueConstraint
unique) {
1717
if (constraints[i] is
UniqueConstraint
) {
1719
UniqueConstraint
unique = (
UniqueConstraint
)constraints[i];
1796
UniqueConstraint
_constraint = (
UniqueConstraint
) foreign.RelatedTable.Constraints.FindConstraint( new UniqueConstraint( "TEMP", fields));
fx\src\data\System\Data\XMLSchema.cs (2)
1207
UniqueConstraint
found = (
UniqueConstraint
) key[0].Table.Constraints.FindConstraint(new UniqueConstraint(name, key));