Skip to main content

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

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
modelIModelTarget model
Null cannot be specified.

Return value

  • bool

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for model
When null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance