edmiRemoteDeleteModel
Â
EdmiError edmiRemoteDeleteModel(SdaiServerContext serverContextId, SdaiString repositoryName, SdaiString modelName, SdaiInvocationId *edmiInvocationId);
Deletes the model in a remote EDMdatabase. The model is uniquely identified in the remote EDMdatabase by its name and the name of the repository in which it is contained. The model must be closed before it may be deleted. Only the owner of a model may delete it. A Dictionary model is a compiled Express Schema and may not be deleted from an EDMdatabase if there exists one or more data models that use that particular schema as its underlying Express Schema. Neither may it be deleted if there exist Express-X dictionary models that use it as its source or target model. However, any belonging EDMquerySchema, EDMruleSchema and STEP Identifier model will be deleted.
Arguments
Type | Name | Comment |
SdaiServerContext  | serverContextId | Context identification, from edmiDefineServerContext |
 SdaiString | repositoryName | The name of the remote data repository that contains the model to be deleted. Repository names are case sensitive |
 SdaiString | modelName | The name of the model to delete. Model names are case sensitive. |
 SdaiInvocationId | edmiInvocationId | Currently not used. |
Return Value
Â
Options
 Â
Â
Example
Â
 EdmiError rstat; SdaiServerContext myContext; /* Create Server Context */ rstat = edmiDefineServerContext("MyContext", "Johnny", "Supervisor", "cf37ftr", "TCP", "9090", "MyServerHost", NULL, NULL, NULL, NULL, NULL, &myContext); /* Delete MyModel */ rstat = edmiRemoteDeleteModel(myContext, "DataRepository", "MyModel", NULL); . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â