Skip to main content

IModel.CanRelateAny method

Namespace: NextDesign.Core

Description

Checks if this instance can be associated with the given model.
Returns True if it can be related by any reference field of this instance.
In addition, returns False if the model itself or the associated model is a deleted model or a temporary proxy.
Note that owned fields are not covered.

argument

NameTypeDescription
oppositeIModelThe associated model
Cannot be null.

Return value

  • bool

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite