Skip to content

Commit

Permalink
Copy DBMS from the existing model into the import model to solve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harmen-xb committed Aug 2, 2023
1 parent e1faa0c commit b05da1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PowerDesigner_OData_AddIn/PdODataModelUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ public void UpdatePdmModel(PdPDM.Model pdmModel)
oImportDataModel.SetNameToCode();
// Copy the model options from the existing model to the new model.
oImportDataModel.ModelOptionsText = pdmModel.ModelOptionsText;
// If the DBMS is set on the existing model, set the same DBMS on the import model.
if (pdmModel.DBMS != null)
oImportDataModel.DBMS = pdmModel.DBMS;
// Update the new model from the metadata feed.
UpdatePdmModelFromODataMetadata(oImportDataModel, oDataMetadataFile.Location, oDataAuthType);

Expand Down

0 comments on commit b05da1d

Please sign in to comment.