IModel.UnRelate method

Namespace: NextDesign.Core

Description

Removes the reference association with the given model on the specified field of this instance. If there are multiple associations in the field, remove all of the associations. If no association with the given model exists, nothing will be done and the process will end normally.

argument

Name Type Description
fieldName string Field name
Null or empty string cannot be specified.
opposite IModel The model to disassociate cannot be null.

Return value

  • void

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException When null is specified for opposite
When null or empty string is specified for fieldName
Field not found ExtensionFieldNotFoundException If the specified field is not found in this instance's metaclass
Illegal operation ExtensionInvalidOperationException When an inoperable field is specified in the field name
-Product line feature assignment field
-Field with System.Core tag attached
-Owned field