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); }
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); }