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
Name | Type | Description |
---|---|---|
opposite | IModel | Associate model Null cannot be specified. |
Return value
- bool
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null is specified for opposite |