Skip to main content

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

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
oppositeIModelModel to remove association from
Null cannot be specified.

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite
If null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Invalid operationExtensionInvalidOperationExceptionIf an inoperable field is specified for the field name
- Feature assigned field of product line
- Field tagged with System.Core
- Owned field