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
Name | Type | Description |
---|---|---|
opposite | IModel | The model to disassociate null cannot be specified. |
prefix | Func <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
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null is specified for opposite |