ModelBeforeNewRelationEventParams interface
Namespace: NextDesign.Desktop
Description
Parameters for the related pre-add event.
Affiliation event area
Name | Description |
---|---|
Model | Notifies creation/update/move/delete and selection of models. |
Inherit Base
Name | Description |
---|---|
CancelableEventParams | Base class for cancelable event parameters. |
IModelEventParams | Common parameters for model events. |
Property
Name | Description |
---|---|
Field | target field |
Index | index (0 if not a collection) |
Model | Target model |
OppositeField | New Destination Field |
OppositeIndex | New destination index (0 if not a collection) |
RelatingTo | New Relations |
Annotations
About API specification change and migration method in Ver.1.1
From Ver.1.1, the model that can be obtained with the Model property and RelatingTo property has been changed as follows, and it is now possible to obtain the model that follows the direction of the relationship regardless of user operations on the UI.
| Property | Before | After |
|---------|---------|---------|
| Model | Model corresponding to the operation starting point on the UI | Model corresponding to the Source side class of the related class |
| RelatingTo | Model corresponding to the operation end point on the UI | Model corresponding to the Target side class of the related class |
If you are using these APIs, please change the corresponding part in the extension along with the version upgrade to Ver.1.1 or later.