Skip to main content

IModel.UnRelateWhere method

Namespace: NextDesign.Core

Description

Breaks all reference associations with the given model of this instance that meet the specified criteria.

The target to be disassociated can be arbitrarily determined by the evaluation function. However, the association that meets the following conditions will not be canceled and will end normally. ใƒป When the association 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
oppositeIModelThe model to disassociate
null cannot be specified.
prefixFunc <IRelationship, IField, bool>Related evaluation function
1st argument: Related instance
2nd argument: Associated field
* Return value: Release True
If null is specified, all reference associations with the given model of this instance will be broken.

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null is specified for opposite