protected void Convert() { PaymentsManager manager = new PaymentsManager(); var xmlStream = Helper.GetResource("BodyArchitect.UnitTests.DbConverter.V4V5.BAPoints.xml"); DatabaseConverter converter = new DatabaseConverter(new BACallbackMock(), manager.Load(xmlStream)); converter.Convert(); }
protected void uxExecuteButton_Click(object sender, EventArgs e) { try { if (uxExecuteText.Text != "") { AdminUtilities.RemoveAllCacheInMemory(); DatabaseConverter databaseConverter = new DatabaseConverter(); databaseConverter.OnScriptExecuting(); DataAccess.ExecuteNonQueryNoParameter(uxExecuteText.Text.Trim()); databaseConverter.OnScriptExecuted(); // Update configurations DataAccessContext.ClearConfigurationCache(); ConfigurationHelper.ApplyConfigurations(); databaseConverter.Convert(); AdminUtilities.RemoveAllCacheInMemory(); // Set up PaymentModule // PaymentModuleSetup paymentModule = new PaymentModuleSetup(); // paymentModule.ProcessDatabaseConnected(); uxMessageLabel.ForeColor = System.Drawing.Color.Green; uxMessageLabel.Text = "<strong>Upgrade Completed</storng>"; } else { DisplatError("No command to execute."); } } catch (Exception ex) { DisplatError(ex.Message); } }