Skip to main content

IModel.GetRelationsWhere Method

Namespace: NextDesign.Core

Description

Gets all relations that match the specified conditions for this instance.
This method evaluates IContextOption.PlModelAccessMode.

If no relevant relations exist, it returns an empty collection.

The relations to be retrieved can be determined arbitrarily using the evaluation function.

Arguments

NameTypeDescription
predicateFunc<IRelationship, IField, bool>Relationship evaluation function
First argument: Related instance
Second argument: Related field
Return value: True for the relationship to be retrieved

If null is specified, all relationships of this instance will be retrieved.

Return value

  • IRelationshipCollection