Skip to main content

IModel.GetRelationsByFieldOf Method

Namespace: NextDesign.Core

Description

Gets the relations with the specified model in the specified field.
This method evaluates IContextOption.PlModelAccessMode.

If no relevant relations exist, returns an empty collection.

Arguments

NameTypeDescription
fieldNamestringField name
Cannot be null or an empty string.
oppositeIModelOpposite model
Cannot be null.

Return value

  • IRelationshipCollection

Exception

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