Skip to main content

IModel.GetRelationsOfWhere method

Namespace: NextDesign.Core

Description

Gets associations with the given model that match the specified criteria for this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

The relationship of the acquisition target can be determined arbitrarily using the evaluation function.

argument

NameTypeDescription
oppositeIModelOpposite model
Null cannot be specified.
predicateFunc<IRelationship, IField, bool>Related evaluation function
1st argument: Related instance
2nd argument: Associated field
Return value: Target and True if the association is true

If null is specified, get all associations with the given model.

Return value

  • IRelationshipCollection

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite