Beispiel #1
0
        private bool UpGradeDataBase()
        {
            string path = System.IO.Path.Combine(Environment.CurrentDirectory, "DbUpdate.sql");

            if (System.IO.File.Exists(path))
            {
                return(DatabaseUpgrader.ExeSQLFile(AppSettings.CurrentSetting.ConnectUri, path));
            }
            return(false);
        }
Beispiel #2
0
        private bool UpGradeDataBase()
        {
            bool   result = false;
            string path   = System.IO.Path.Combine(Environment.CurrentDirectory, "DbUpdate.sql");

            if (System.IO.File.Exists(path))
            {
                result = DatabaseUpgrader.ExeSQLFile(AppSettings.CurrentSetting.MasterParkConnect, path);
                if (!string.IsNullOrEmpty(AppSettings.CurrentSetting.StandbyParkConnect) &&
                    !DatabaseUpgrader.ExeSQLFile(AppSettings.CurrentSetting.StandbyParkConnect, path))
                {
                    result = false;
                }
            }
            return(result);
        }