Esempio n. 1
0
 private void SecuredExportExampleWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 2
0
 private void WorkflowDemoWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     try {
         e.Updater.Update();
         e.Handled = true;
     }
     catch (CompatibilityException exception) {
         if (exception.Error is CompatibilityUnableToOpenDatabaseError)
         {
             throw new UserFriendlyException(
                       "The connection to the database failed. This demo requires the local instance of Microsoft SQL Server Express. To use another database server,\r\nopen the demo solution in Visual Studio and modify connection string in the \"app.config\" file.");
         }
     }
 }
Esempio n. 3
0
        private void EnterWinAppWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
#if EASYTEST
            e.Updater.Update();
            e.Handled = true;
#else
            if (System.Diagnostics.Debugger.IsAttached)
            {
                e.Updater.Update();
                e.Handled = true;
            }
            else
            {
                string message = "The application cannot connect to the specified database, " +
                                 "because the database doesn't exist, its version is older " +
                                 "than that of the application or its schema does not match " +
                                 "the ORM data model structure. To avoid this error, use one " +
                                 "of the solutions from the https://www.devexpress.com/kb=T367835 KB Article.";

                if (e.CompatibilityError != null && e.CompatibilityError.Exception != null)
                {
                    message += "\r\n\r\nInner exception: " + e.CompatibilityError.Exception.Message;
                }
                throw new InvalidOperationException(message);
            }
#endif
        }
Esempio n. 4
0
 private void NonPersistentDetailViewNavigationExampleAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 5
0
        private void Solution1AspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
#if EASYTEST
            e.Updater.Update();
            e.Handled = true;
#else
            if (System.Diagnostics.Debugger.IsAttached)
            {
                e.Updater.Update();
                e.Handled = true;
            }
            else
            {
                string message = "The application cannot connect to the specified database, because the latter doesn't exist or its version is older than that of the application.\r\n" +
                                 "This error occurred  because the automatic database update was disabled when the application was started without debugging.\r\n" +
                                 "To avoid this error, you should either start the application under Visual Studio in debug mode, or modify the " +
                                 "source code of the 'DatabaseVersionMismatch' event handler to enable automatic database update, " +
                                 "or manually create a database using the 'DBUpdater' tool.\r\n" +
                                 "Anyway, refer to the following help topics for more detailed information:\r\n" +
                                 "'Update Application and Database Versions' at http://www.devexpress.com/Help/?document=ExpressApp/CustomDocument2795.htm\r\n" +
                                 "'Database Security References' at http://www.devexpress.com/Help/?document=ExpressApp/CustomDocument3237.htm\r\n" +
                                 "If this doesn't help, please contact our Support Team at http://www.devexpress.com/Support/Center/";

                if (e.CompatibilityError != null && e.CompatibilityError.Exception != null)
                {
                    message += "\r\n\r\nInner exception: " + e.CompatibilityError.Exception.Message;
                }
                throw new InvalidOperationException(message);
            }
#endif
        }
Esempio n. 6
0
 private void InstantPrintReportsV2ExampleAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
 private void AuditDemoWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     //if(System.Diagnostics.Debugger.IsAttached) {
     e.Updater.Update();
     e.Handled = true;
     //}
 }
 private void UseFunctionCriteriaOperatorsWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 9
0
 private void CustomizeNewActionItemsListExampleWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
 private void HowToAccessApplicationModelInCodeWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
 private void CustomFunctionCriteriaOperatorAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
        private void GestParcAutoMobileApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e) {
#if EASYTEST
            e.Updater.Update();
            e.Handled = true;
            
}
 private void HowToUseTreeListEditorWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 14
0
 private void ASPxDropDownEditAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 15
0
 private void PermissionPolicyExampleAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     throw new InvalidOperationException(
               "The application cannot connect to the specified database, because the latter doesn't exist or its version is older than that of the application");
 }
Esempio n. 16
0
 private void HowToSetValidationRulesInCodeAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 17
0
 private void MainDemoMobileApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 18
0
 protected override void OnDatabaseVersionMismatch(DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs args)
 {
     args.Updater.Update();
     args.Handled = true;
 }
 private void EditorStateExampleAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 20
0
        private void Vinabits_OM_2017AspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
            //if (System.Diagnostics.Debugger.IsAttached)
            //{
            e.Updater.Update();
            e.Handled = true;
            //}
            //else {
            //    string message = "The application cannot connect to the specified database.";

            //    if (e.CompatibilityError != null && e.CompatibilityError.Exception != null)
            //    {
            //        message += "\r\n\r\nInner exception: " + e.CompatibilityError.Exception.Message;
            //    }
            //    throw new InvalidOperationException(message);
            //}
        }
Esempio n. 21
0
        private void BPIWABKWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
            string message = "The application cannot connect to the specified database.";

            if (e.CompatibilityError != null && e.CompatibilityError.Exception != null)
            {
                message += "\r\n\r\nInner exception: " + e.CompatibilityError.Exception.Message;
            }
            throw new InvalidOperationException(message);
        }
 private void HowToImplementSingletonAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
 private void SecuritySystemExampleWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     throw new InvalidOperationException(
               "The application cannot connect to the specified database, because the latter doesn't exist or its version is older than that of the application.");
 }
        private void E2096WindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
#if EASYTEST
            e.Updater.Update();
            e.Handled = true;
#else
            e.Updater.Update();
            e.Handled = true;
#endif
        }
 private void WinExampleWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         e.Updater.Update();
         e.Handled = true;
     }
     else
     {
         throw new InvalidOperationException(
                   "The application cannot connect to the specified database, because the latter doesn't exist or its version is older than that of the application.\r\n" +
                   "The automatical update is disabled, because the application was started without debugging.\r\n" +
                   "You should start the application under Visual Studio, or modify the " +
                   "source code of the 'DatabaseVersionMismatch' event handler to enable automatic database update, " +
                   "or manually create a database with the help of the 'DBUpdater' tool.");
     }
 }
Esempio n. 26
0
        private void MyWorkbenchAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
            e.Updater.Update();

            MultiTenantHelper.CreateUser(this.ObjectSpaceProvider.CreateUpdatingObjectSpace(true));

            e.Handled = true;
        }
        private void Solution2WindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
        {
#if EASYTEST
            e.Updater.Update();
            e.Handled = true;
#else
            if (System.Diagnostics.Debugger.IsAttached)
            {
                e.Updater.Update();
                e.Handled = true;
            }
            else
            {
                throw new InvalidOperationException(
                          "The application cannot connect to the specified database, because the latter doesn't exist or its version is older than that of the application.\r\n" +
                          "This error occurred  because the automatic database update was disabled when the application was started without debugging.\r\n" +
                          "To avoid this error, you should either start the application under Visual Studio in debug mode, or modify the " +
                          "source code of the 'DatabaseVersionMismatch' event handler to enable automatic database update, " +
                          "or manually create a database using the 'DBUpdater' tool.\r\n" +
                          "Anyway, refer to the 'Update Application and Database Versions' help topic at http://www.devexpress.com/Help/?document=ExpressApp/CustomDocument2795.htm " +
                          "for more detailed information. If this doesn't help, please contact our Support Team at http://www.devexpress.com/Support/Center/");
            }
#endif
        }
 private void FeatureCenterAspNetApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 29
0
 private void WinWebSolutionWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }
Esempio n. 30
0
 private void HowToInitializeObjectCreatedViaNewActionWindowsFormsApplication_DatabaseVersionMismatch(object sender, DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs e)
 {
     e.Updater.Update();
     e.Handled = true;
 }