Skip to main content

IModel.GetRelationsByClassTagOf method

Namespace: NextDesign.Core

Description

Gets associations from all fields of this model with the given model associated by association classes with the specified tag.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

argument

NameTypeDescription
oppositeIModelOther model
You cannot specify null.
classTagstringTag name of related class
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 the tag for the class is evaluated.

Return value

  • IRelationshipCollection

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite