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
Name | Type | Description |
---|---|---|
opposite | IModel | Model to be related null cannot be specified. |
Return value
- bool
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |