Ejemplo n.º 1
0
        private bool UpGradeDataBase()
        {
            bool   result = false;
            string path   = System.IO.Path.Combine(Environment.CurrentDirectory, "DbUpdate.sql");

            if (System.IO.File.Exists(path))
            {
                SqlClientHelper.SqlClient client = new SqlClientHelper.SqlClient(AppSettings.CurrentSetting.MasterParkConnect);
                client.Connect();
                client.ExecuteSQLFile(path);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public static bool ExeSQLFile(string repoUri, string path)
        {
            bool ret = false;

            try
            {
                SqlClientHelper.SqlClient client = new SqlClientHelper.SqlClient(repoUri);
                client.Connect();
                client.ExecuteSQLFile(path);
                ret = true;
            }
            catch (Exception ex)
            {
                Ralid.GeneralLibrary.ExceptionHandling.ExceptionPolicy.HandleException(ex);
            }
            return(ret);
        }