Skip to main content

IModel.GetRelation Method

Namespace: NextDesign.Core

Description​

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

If the specified field does not have a valid relation, it returns null.
Note that if the multiplicity of the specified field is 2 or more, it gets the relation to the first element of the field.

Arguments​

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.

Return value​

Exception​

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf fieldName is null or an empty string is specified
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance