IModel.GetRelationsByFieldOf method ¶
Namespace: NextDesign.Core
Description¶
Gets the association with the specified model in the specified field. This method evaluates IContextOption.PlModelAccessMode.
Returns an empty collection if no such association exists.
argument¶
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Null or empty string cannot be specified. |
| opposite | IModel | Other model null cannot be specified. |
Return value¶
- IRelationshipCollection
Exception¶
| Name | Exception Class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | When null is specified for opposite When null or empty string is specified for fieldName |
| Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass |