IModel.GetRelationsByFieldOf method
Namespace: NextDesign.Core
Description
Gets the association with the specified model on 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 You cannot specify null or an empty string. |
opposite | IModel | Other model You cannot specify null. |
Return value
- IRelationshipCollection
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite If null or an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass |