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
Name | Type | Description |
---|---|---|
opposite | IModel | The associated model Cannot be null. |
Return value
- bool
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |