瀏覽代碼

切换正式数据库

lcl 1 年之前
父節點
當前提交
fcbbd2cb86
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 二進制
      .DS_Store
  2. 4 4
      Startup.cs

二進制
.DS_Store


+ 4 - 4
Startup.cs

@@ -279,10 +279,10 @@ namespace MySystem
         {
             string conn = Configuration["Setting:SqlConnStr"];
             string dbName = "KxsMainServer";
-            // if(Library.ConfigurationManager.EnvironmentFlag == 2)
-            // {
-            //     dbName = "KxsProfitServer";
-            // }
+            if(Library.ConfigurationManager.EnvironmentFlag == 2)
+            {
+                dbName = "KxsProfitServer";
+            }
             Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
             System.Data.DataTable tablecollection = Library.CustomerSqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = '" + dbName + "'", conn);
             foreach (System.Data.DataRow subtable in tablecollection.Rows)