IModel.RelateAllDerivedFrom Method
Namespace: NextDesign.Core
Description
Relates all fields of this instance that can be related to the specified model as the derived model, and returns a collection of all related instances added.
If a deleted model or a temporary proxy is specified as the model to be related, no association will be made.
If no association is made, an empty collection will be returned.
In this method, fields that do not meet the following constraints will be excluded from the association.
[Constraints to evaluate]
- Path constraint
- Type constraint
- Upper limit of multiplicity
- Operation possible
Arguments
Name | Type | Description |
---|---|---|
opposite | IModel | Model to associate with null cannot be specified. |
Return value
- IRelationshipCollection
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null is specified for opposite |
Invalid operation | ExtensionInvalidOperationException | When the model itself is a deleted model or a temporary proxy |