Skip to main content

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

NameTypeDescription
oppositeIModelModel to associate with
null cannot be specified.

Return value

  • IRelationshipCollection

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for opposite
Invalid operationExtensionInvalidOperationExceptionWhen the model itself is a deleted model or a temporary proxy