Skip to main content

IModel.UnRelateWhere Method

Namespace: NextDesign.Core

Description

Removes all reference associations between this instance and the specified model that meet the specified conditions.

The target to remove the association can be determined arbitrarily using the evaluation function.
However, associations that meet the following conditions will not be removed and will terminate normally.

  • If the association that meets the conditions is for product line support
  • If the System.Core tag is attached to the field of the association end that meets the conditions

Arguments

NameTypeDescription
oppositeIModelModel to remove association from
null cannot be specified.
predicateFunc<IRelationship, IField, bool>Association evaluation function
_ First argument: Association instance
_ Second argument: Associated field
* Return value: True for association to be removed
If null is specified, all reference associations between this instance and the given model will be removed.

Return value

  • void

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite