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
Name | Type | Description |
---|---|---|
opposite | IModel | Opposite model Null cannot be specified. |
predicate | Func<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
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |