Skip to main content

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

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
oppositeIModelThe model to disassociate
null cannot be specified.

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for opposite
When null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Illegal operationExtensionInvalidOperationExceptionWhen an inoperable field is specified in the field name
-Product line feature assignment field
-Field with System.Core tag
-Owned Field