IModel.IsRelatedAtFieldTo method
Namespace: NextDesign.Core
Description
Checks if this instance has a reference association with the given model in the specified field. Returns True if related.
argument
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 | When null is specified for model When 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 |