Skip to main content

IModel.GetRelationsOfWhere Method

Namespace: NextDesign.Core

Description

Gets the relations with the specified model that match the specified conditions of this instance.
This method evaluates IContextOption.PlModelAccessMode.

If there is no corresponding relation, it returns an empty collection.

The relation to be obtained can be determined arbitrarily by the evaluation function.

Arguments

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

If null is specified, all relationships with the given model are retrieved.

Return value

  • IRelationshipCollection

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite