Skip to main content

IModel.GetRelationsOfWhere method

Namespace: NextDesign.Core

Description

Gets the association with a given model that matches the specified criteria for this instance. This method evaluates IContextOption.PlModelAccessMode.

If no such association exists, it returns an empty collection.

The relationship to be acquired can be arbitrarily determined by the evaluation function.

argument

NameTypeDescription
oppositeIModelOpposite model
null cannot be specified.
prefixFunc <IRelationship, IField, bool>Related evaluation function
1st argument: Related instance
2nd argument: Associated field
Return value: Target to be acquired True

If null is specified, all associations with the given model will be acquired.

Return value

  • IRelationshipCollection

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for opposite