Skip to main content

IModel.CanRelateAny method

Namespace: NextDesign.Core

Description

Find out if this instance can be associated with a given model. Returns True if any reference field in this instance can be associated. If the model itself or the associated model is a deleted model or a temporary proxy, False is returned. It does not apply to owned fields.

argument

NameTypeDescription
oppositeIModelAssociate model
Null cannot be specified.

Return value

  • bool

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for opposite