Skip to main content

IModel.UnRelateWhere method

Namespace: NextDesign.Core

Description

Disassociates all reference associations of this instance with the given model that meet the specified conditions.

The target to be disassociated can be arbitrarily determined using the evaluation function.
However, the association that meets the following conditions will not be canceled and will end normally.
・If the relationship that meets the conditions is for product line support
・When the System.Core tag is attached to the related end field that matches the condition

argument

NameTypeDescription
oppositeIModelModel to disassociate
Null cannot be specified.
predicateFunc<IRelationship, IField, bool>Related evaluation function
* 1st argument: Related instance
* 2nd argument: Associated field
* Return value: True if the association is to be broken
If null is specified, all reference associations of this instance with the given model will be broken.

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite