Property | Type | Description | |
---|---|---|---|
AssignName | string | ||
InternalIndexOf | int | ||
MakeName | string | ||
RegisterName | void | ||
UnregisterName | void |
Method | Description | |
---|---|---|
Add ( |
Creates a relation given the parameters and adds it to the collection. The name is defaulted. An ArgumentException is thrown if this relation already belongs to this collection or belongs to another collection. An InvalidConstraintException is thrown if the relation can't be created based on the parameters. The CollectionChanged event is fired if it succeeds.
|
|
Add ( string name, |
Creates a
|
|
Add ( string name, |
Creates a relation given the parameters and adds it to the collection. An ArgumentNullException is thrown if this relation is null. An ArgumentException is thrown if this relation already belongs to this collection, belongs to another collection, or if this collection already has a relation with the same name (case insensitive). An InvalidRelationException is thrown if the relation can't be created based on the parameters. The CollectionChanged event is fired if it succeeds.
|
|
Add ( |
Adds the relation to the collection.
|
|
AddRange ( |
||
CanRemove ( |
Verifies if a given relation can be removed from the collection.
|
|
Clear ( ) : void |
Clears the collection of any relations.
|
|
Contains ( string name ) : bool |
Returns true if this collection has a relation with the given name (case insensitive), false otherwise.
|
|
CopyTo ( |
||
IndexOf ( |
Returns the index of a specified
|
|
IndexOf ( string relationName ) : int |
Returns the index of the relation with the given name (case insensitive), or -1 if the relation doesn't exist in the collection.
|
|
Remove ( |
Removes the given relation from the collection. An ArgumentNullException is thrown if this relation is null. An ArgumentException is thrown if this relation doesn't belong to this collection. The CollectionChanged event is fired if it succeeds.
|
|
Remove ( string name ) : void |
Removes the relation with the given name from the collection. An IndexOutOfRangeException is thrown if this collection doesn't have a relation with that name The CollectionChanged event is fired if it succeeds.
|
|
RemoveAt ( int index ) : void |
Removes the relation at the given index from the collection. An IndexOutOfRangeException is thrown if this collection doesn't have a relation at this index. The CollectionChanged event is fired if it succeeds.
|
|
this ( int index ) : |
Gets the relation specified by index.
|
|
this ( string name ) : |
Gets the relation specified by name.
|
Method | Description | |
---|---|---|
AddCore ( |
Does verification on the table. An ArgumentNullException is thrown if this relation is null. An ArgumentException is thrown if this relation already belongs to this collection, belongs to another collection. A DuplicateNameException is thrown if this collection already has a relation with the same name (case insensitive).
|
|
GetDataSet ( ) : |
Gets the dataSet for this collection.
|
|
OnCollectionChanged ( |
This method is called whenever the collection changes. Overriders of this method should call the base implementation of this method.
|
|
OnCollectionChanging ( |
||
RemoveCore ( |
Does verification on the relation. An ArgumentNullException is thrown if this relation is null. An ArgumentException is thrown if this relation doesn't belong to this collection.
|
Method | Description | |
---|---|---|
AssignName ( ) : string |
Creates a new default name.
|
|
InternalIndexOf ( string name ) : int | ||
MakeName ( int index ) : string |
Makes a default name with the given index. e.g. Relation1, Relation2, ... Relationi
|
|
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 Relation.RelationName 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 Relation.RelationName 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 ( |
||
parentColumns | ||
childColumns | ||
return |
public Add ( string name, |
||
name | string | |
parentColumns | ||
childColumns | ||
return |
public Add ( string name, |
||
name | string | |
parentColumns | ||
childColumns | ||
createConstraints | bool | |
return |
protected AddCore ( |
||
relation | ||
return | void |
public AddRange ( |
||
relations | ||
return | void |
public CanRemove ( |
||
relation | ||
return | bool |
public CopyTo ( |
||
array | ||
index | int | |
return | void |
public IndexOf ( |
||
relation | ||
return | int |
protected OnCollectionChanged ( |
||
ccevent | ||
return | void |
protected OnCollectionChanging ( |
||
ccevent | ||
return | void |
public Remove ( |
||
relation | ||
return | void |
protected RemoveCore ( |
||
relation | ||
return | void |
public abstract this ( int index ) : |
||
index | int | |
return |
public abstract this ( string name ) : |
||
name | string | |
return |