IModel.GetRefRelatedModels(string,bool) Method
Namespace: NextDesign.Core
Description
Retrieves instances that have a reference relationship with this instance through the specified related class.
If the related class is not specified (null), it retrieves all instances with reference relationships.
This method evaluates IContextOption.PlModelAccessMode.
This method returns an empty collection in the following cases:
- No instances associated with the specified reference relationship exist.
- The specified related class cannot be found.
- The reference field by the specified related class cannot be found.
Note that if the specified related class is a self-referential relationship, both the source and target relationships are evaluated.
Argument
| Name | Type | Description |
|---|---|---|
| className | string | Related Class Name Specifies the name or fully qualified name of the related class. If null is specified, it retrieves the related instance for all reference fields. The default value is null. |
| fuzzy | bool | Fuzzy Match Option Whether to treat the className argument as the name of the class rather than its fully qualified name. If False, it evaluates as specifying a class whose fully qualified name matches className. If True, it evaluates as specifying a class whose class name matches className. The default value is True. |
Return value
- IModelCollection