Skip to main content

IModel.GetRelations Method

Namespace: NextDesign.Core

Description

Gets the related collection for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

If no related relationships exist, it returns an empty collection.

Arguments

NameTypeDescription
fieldNamestringField name
Cannot be null or an empty string.

Return value

  • IRelationshipCollection

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