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 such association exists, it returns an empty collection.

argument

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

Return value

  • IRelationshipCollection

Exception

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