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
Name | Type | Description |
---|---|---|
opposite | IModel | Other model You cannot specify null. |
classTag | string | Tag name of related class 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 the tag for the class is evaluated. |
Return value
- IRelationshipCollection
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |