IModel.IsRelatedAtFieldTo method ¶
Namespace: NextDesign.Core
Description¶
Checks if this instance has a lookup relationship with the given model in the given field. Returns True if there is an association.
argument¶
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or 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 empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass |