Skip to main content

IModel.CanRelateAny Method

Namespace: NextDesign.Core

Description

Checks whether this instance can be related to the specified model.
Returns True if the instance can be related using any of its reference fields.
Note that this returns False if the model itself or the model to be related is a deleted model or a temporary proxy.
Note that this does not apply to owned fields.

Arguments

NameTypeDescription
oppositeIModelModel to be related
null cannot be specified.

Return value

  • bool

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite