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
Name | Type | Description |
---|---|---|
opposite | IModel | Opposite model null cannot be specified. |
prefix | Func <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
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null is specified for opposite |