IModel.IsRelatedAtFieldTo method
Namespace: NextDesign.Core
Description
Checks if this instance has a reference relationship with the given model with the specified field.
Returns True if related.
argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name You cannot specify null or an empty string. |
| model | IModel | Target model You cannot specify null. |
Return value
- bool
Exceptions
| Name | Exception Class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If null is specified for model 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 |