Свойство | Тип | Описание | |
---|---|---|---|
AssignName | string | ||
InternalIndexOf | int | ||
MakeName | string | ||
RegisterName | void | ||
UnregisterName | void |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | ||
Результат |
public Add ( string name, |
||
name | string | |
parentColumns | ||
childColumns | ||
Результат |
public Add ( string name, |
||
name | string | |
parentColumns | ||
childColumns | ||
createConstraints | bool | |
Результат |
public Add ( |
||
relation | ||
Результат | void |
protected AddCore ( |
||
relation | ||
Результат | void |
public AddRange ( |
||
relations | ||
Результат | void |
public CanRemove ( |
||
relation | ||
Результат | bool |
public CopyTo ( |
||
array | ||
index | int | |
Результат | void |
protected abstract GetDataSet ( ) : |
||
Результат |
public IndexOf ( |
||
relation | ||
Результат | int |
public IndexOf ( string relationName ) : int | ||
relationName | string | |
Результат | int |
protected OnCollectionChanged ( |
||
ccevent | ||
Результат | void |
protected OnCollectionChanging ( |
||
ccevent | ||
Результат | void |
public Remove ( |
||
relation | ||
Результат | void |
protected RemoveCore ( |
||
relation | ||
Результат | void |
public abstract this ( int index ) : |
||
index | int | |
Результат |
public abstract this ( string name ) : |
||
name | string | |
Результат |