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
Name | Type | Description |
---|---|---|
opposite | IModel | Other model You cannot specify null. |
fieldTag | string | Field tag name If null or an empty string is specified, the return value of this method will be an empty collection. |
value | string | The 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
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |