Skip to main content

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

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.
modelIModelTarget model
You cannot specify null.

Return value

  • bool

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for model
If null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in this instance's metaclass