IModel.GetRelations Method
Namespace: NextDesign.Core
Description
Gets the related collection for the specified field.
This method evaluates IContextOption.PlModelAccessMode.
If no related relationships exist, it returns an empty collection.
Arguments
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Cannot be null or an empty string. |
Return value
- IRelationshipCollection
Exception
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If fieldName is null or an empty string is specified |
| Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |