Property | Type | Description | |
---|---|---|---|
Add | void | ||
AddForeignKeyConstraint | void | ||
AddUniqueConstraint | void | ||
ArrayAdd | void | ||
ArrayRemove | void | ||
AssignName | string | ||
AutoGenerated | bool | ||
BaseAdd | void | ||
BaseGroupSwitch | void | ||
BaseRemove | void | ||
CanRemove | bool | ||
CompareArrays | bool | ||
ConstraintCollection | System.Diagnostics | ||
Contains | bool | ||
FindConstraint | |||
FindForeignKeyConstraint | |||
FindKeyConstraint | |||
FinishInitConstraints | void | ||
InternalIndexOf | int | ||
MakeName | string | ||
OnCollectionChanged | void | ||
RegisterName | void | ||
UnregisterName | void |
Method | Description | |
---|---|---|
Add ( string name, |
Constructs a new
|
|
Add ( string name, |
Constructs a new
|
|
Add ( |
Adds the constraint to the collection.
|
|
AddRange ( |
||
CanRemove ( |
Indicates if a
|
|
Clear ( ) : void |
Clears the collection of any
|
|
Contains ( string name ) : bool |
Indicates whether the
|
|
CopyTo ( |
||
IndexOf ( |
Returns the index of the specified
|
|
IndexOf ( string constraintName ) : int |
Returns the index of the
|
|
Remove ( |
Removes the specified
|
|
Remove ( string name ) : void |
Removes the constraint, specified by name, from the collection.
|
|
RemoveAt ( int index ) : void |
Removes the constraint at the specified index from the collection.
|
|
this ( int index ) : |
Gets the
|
|
this ( string name ) : |
Gets the
|
Method | Description | |
---|---|---|
Add ( |
||
AddForeignKeyConstraint ( |
||
AddUniqueConstraint ( |
||
ArrayAdd ( |
Adds the constraint to the constraints array.
|
|
ArrayRemove ( |
||
AssignName ( ) : string |
Creates a new default name.
|
|
AutoGenerated ( |
||
BaseAdd ( |
Does verification on the constraint and it's name. An ArgumentNullException is thrown if this constraint is null. An ArgumentException is thrown if this constraint already belongs to this collection, belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive).
|
|
BaseGroupSwitch ( |
BaseGroupSwitch will intelligently remove and add tables from the collection.
|
|
BaseRemove ( |
Does verification on the constraint and it's name. An ArgumentNullException is thrown if this constraint is null. An ArgumentException is thrown if this constraint doesn't belong to this collection or if this constraint is part of a relationship.
|
|
CanRemove ( |
||
CompareArrays ( |
||
ConstraintCollection ( |
ConstraintCollection constructor. Used only by DataTable.
|
|
Contains ( string name, bool caseSensitive ) : bool | ||
FindConstraint ( |
Returns a matching constriant object.
|
|
FindForeignKeyConstraint ( |
Returns a matching constriant object.
|
|
FindKeyConstraint ( |
Returns a matching constriant object.
|
|
FinishInitConstraints ( ) : void | ||
InternalIndexOf ( string constraintName ) : int | ||
MakeName ( int index ) : string |
Makes a default name with the given index. e.g. Constraint1, Constraint2, ... Constrainti
|
|
OnCollectionChanged ( |
Raises the
|
|
RegisterName ( string name ) : void |
Registers this name as being used in the collection. Will throw an ArgumentException if the name is already being used. Called by Add, All property, and Constraint.ConstraintName property. if the name is equivalent to the next default name to hand out, we increment our defaultNameIndex.
|
|
UnregisterName ( string name ) : void |
Unregisters this name as no longer being used in the collection. Called by Remove, All property, and Constraint.ConstraintName property. If the name is equivalent to the last proposed default name, we walk backwards to find the next proper default name to use.
|
public Add ( string name, |
||
name | string | |
primaryKeyColumn | ||
foreignKeyColumn | ||
return |
public Add ( string name, |
||
name | string | |
columns | ||
primaryKey | bool | |
return |
public AddRange ( |
||
constraints | ||
return | void |
public CanRemove ( |
||
constraint | ||
return | bool |
public CopyTo ( |
||
array | ||
index | int | |
return | void |
public IndexOf ( |
||
constraint | ||
return | int |
public IndexOf ( string constraintName ) : int | ||
constraintName | string | |
return | int |
public Remove ( |
||
constraint | ||
return | void |