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