Skip to main content

IModel.RelateAllDerivedTo method

Namespace: NextDesign.Core

Description

Returns a collection of all associated instances added by associating the given model as a derivation with all fields that can be associated with the given model of this instance.
If a model that has been deleted or a temporary proxy is specified as the model to be associated, the association will not be performed.
Returns an empty collection if no association was made.

This method excludes fields from association that do not meet the following constraints:
[constraint to evaluate]

  • Path constraints
  • type constraints
  • Multiplicity upper bound
  • Operation availability

argument

NameTypeDescription
oppositeIModelThe associated model
Cannot be null.

Return value

  • IRelationshipCollection

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite
Illegal operationExtensionInvalidOperationExceptionIf self is deleted model, temporary proxy