public void SaveDatabase() { if (workspaceMan.UnitOfWork != null) { ((ModelsProvider)dataProvider).Save(); dataSources.Save(); workspaceMan.SaveDatabase(); } }