Skip to main content

IModel.RelateAll method

Namespace: NextDesign.Core

Description

Returns a collection of all related instances that you have added, associating the given model with any reference field that can be associated with the given model of this instance. If a deleted model or temporary proxy is specified for the model to be associated, the association will not be performed. If no association is made, an empty collection is returned.

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

  • Path constraint
  • Type constraints
  • Multiplicity upper limit
  • Operability

argument

NameTypeDescription
oppositeIModelAssociate model
Null cannot be specified.

Return value

  • IRelationshipCollection

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for opposite
Illegal operationExtensionInvalidOperationExceptionIf it is a deleted model, temporary proxy