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
Name | Type | Description |
---|---|---|
opposite | IModel | Model to disassociate Null cannot be specified. |
predicate | Func<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
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |