IModel.GetRefRelatedModels method
Namespace: NextDesign.Core
Description
Gets the instance that has a reference relationship with this instance by the specified related class. If the related class is not specified (null), the instances in all reference relationships will be acquired. This method evaluates IContextOption.PlModelAccessMode.
This method returns an empty collection if the following cases are true:
- The instance associated with the relevant reference association does not exist
- The specified related class cannot be found
- The reference field by the specified related class cannot be found.
If the specified related class is a self-reference related, both the related source and related destination relationships are evaluated.
argument
Name | Type | Description |
---|---|---|
className | string | Related class name Specify the name of the related class or the fully qualified name. If null is specified, all referenced fields will be fetched for the relevant instance. The default value is null. |
fuzzy | bool | className Whether to treat the argument as a class name rather than a fully qualified name. If False, evaluate as specifying a class whose fully qualified name matches className. If True, evaluate as specifying a class whose class name matches className. The default value is True. |
Return value
- IModelCollection