IModel.GetRelationsByFieldOf Method
Namespace: NextDesign.Core
Description
Gets the relations with the specified model in the specified field.
This method evaluates IContextOption.PlModelAccessMode.
If no relevant relations exist, returns an empty collection.
Arguments
Name | Type | Description |
---|---|---|
fieldName | string | Field name Cannot be null or an empty string. |
opposite | IModel | Opposite model Cannot be null. |
Return value
- IRelationshipCollection
Exception
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 the metaclass of this instance |