IModel.GetRelation method

Namespace: NextDesign.Core

Description

Gets the relationship of the specified field. This method evaluates IContextOption.PlModelAccessMode.

Returns null if the specified field does not have a valid relationship. If the multiplicity of the specified field is 2 or more, the relation to the first element of the corresponding field will be acquired.

argument

Name Type Description
fieldName string Field name
Null or empty string cannot be specified.

Return value

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException When null or empty string is specified in fieldName
Field not found ExtensionFieldNotFoundException If the specified field is not found in this instance's metaclass