Skip to main content

IModel.GetRelation method

Namespace: NextDesign.Core

Description​

Gets associations for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns null if the specified field does not have a valid association.
In addition, if the multiplicity of the specified field is 2 or more, get the relation to the first element of the corresponding field.

argument​

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.

Return value​

Exceptions​

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in this instance's metaclass