IModel.UnRelate Method
Namespace: NextDesign.Core
Description
Removes the reference association with the specified model in the specified field of this instance.
If there are multiple associations in the field, all of them will be removed.
If there is no association with the specified model, nothing will be done and the program will terminate normally.
Arguments
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
opposite | IModel | Model to remove association from Null cannot be specified. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite If null or an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |
Invalid operation | ExtensionInvalidOperationException | If an inoperable field is specified for the field name - Feature assigned field of product line - Field tagged with System.Core - Owned field |