edmiUpdateInverse
SdaiOnOff edmiActivateModel (SdaiServerContext serverContextId);
Turns on or off the EDMinterface automatic updating of Inverse facility. When this facility is enabled then each EDMinterface put (write) operation that updates (sets or deletes) a relation between two instances, and this relation has an Inverse constraint, then the related Inverse attribute(s) will be updated accordingly. A minor performance penalty can be expected when this facility is enabled, but this guarantee database consistency. When this facility is disabled then the calling application is responsible for updating the Inverse attributes. The default is that the automatic update of Inverse attribute is on. When this facility is turned off, turning it on again have no effect on existing models, only on new models that are later created. This operation have influence on data models only.
Arguments
Type | Name | Comment |
SdaiOnOff | OnOff | The two following values can be specified:
|
Return Value
Type | Comment |
SdaiOnOff | Returns the current status of this facility at the invocation of the operation. The returned value is of type SdaiOnOff and can have the following two values:
|
Options
Example
EdmiError rstat; . . . if (rstat = edmiUpdateInverse (sdaiOFF)) { /* Error in operation */ printf("\nError: %s in edmiUpdateInverse\n", edmiGetErrorText(rstat)); goto error; } . . .
See also
Filter by label
There are no items with the selected labels at this time.