Skip to main content

Method IModel.GetRelationsByFieldTagOf

Namespace: NextDesign.Core

Description

Gets the relationship with the given model from the field with the given tag.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

argument

NameTypeDescription
oppositeIModelOther model
You cannot specify null.
fieldTagstringField tag name
If null or an empty string is specified, the return value of this method will be an empty collection.
valuestringThe string representation of the tag value
The default value is null.
If null or an empty string is specified, only the presence or absence of a tag for the field is evaluated.

Return value

  • IRelationshipCollection

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite