IModel.IsRelatedAtFieldTo Method
Namespace: NextDesign.Core
Description
Checks whether this instance has a reference relationship with the specified model in the specified field.
Returns True if there is a relationship.
Arguments
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Null or an empty string cannot be specified. |
| model | IModel | Target model Null cannot be specified. |
Return value
- bool
Exception
| 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 the metaclass of this instance |