IModel.GetRefRelatedModels method
Namespace: NextDesign.Core
Description
Gets the instances that have a reference relationship with this instance through the specified related class.
If the related class is not specified (null), all the instances in the reference relationship will be obtained.
This method evaluates IContextOption.PlModelAccessMode.
This method returns an empty collection in the following cases:
- there is no instance associated with the relevant reference association
- Specified related class not found
- No reference field found by the specified association class
If the specified related class is self-referential related, both the related source and related destination relationships will be evaluated.
argument
Name | Type | Description |
---|---|---|
className | string | Association Class Name Specify the name or fully qualified name of the association class. If null is specified, the related instances will be acquired for all reference fields. The default is null. |
Whether to treat the | fuzzy | bool |
Return value
- IModelCollection