Skip to main content

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

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

Return value

  • bool

Exception

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 the metaclass of this instance