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 unspecified (null), get all instances that have a reference relationship. This method evaluates IContextOption.PlModelAccessMode.

This method returns an empty collection in the following cases: - Instance associated with the corresponding reference does not exist - Cannot find the specified related class - Missing reference field by specified related class

If the specified relation class is a self-reference relation, both the relation source and relation destination 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, get the related instance for all reference fields.

The default value is null.
fuzzy bool className argument as the class name instead of the fully qualified name.
If False, evaluates as the class whose fully qualified name matches className.
If True, evaluate as if the class whose class name matches className is specified.

The default value is True.

Return value

  • IModelCollection