IModel.UnRelate method
Namespace: NextDesign.Core
Description
Breaks the reference association with the given model in the specified field of this instance. If there are multiple associations in the field, disassociate all of them. If there is no association with the given model, nothing is done and it ends normally.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
opposite | IModel | The model to disassociate null cannot be specified. |
Return value
- void
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null is specified for opposite When 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 |
Illegal operation | ExtensionInvalidOperationException | When an inoperable field is specified in the field name -Product line feature assignment field -Field with System.Core tag -Owned Field |