IModel.GetRelationsByFieldOf method
Namespace: NextDesign.Core
Description
Gets the association with the specified model in the specified field. This method evaluates IContextOption.PlModelAccessMode.
If no such association exists, it returns an empty collection.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
opposite | IModel | Opposite 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 an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |