|
@@ -105,12 +105,13 @@ namespace MySystem
|
|
MySystemLib.SystemPublicFuction.appid = appid;
|
|
MySystemLib.SystemPublicFuction.appid = appid;
|
|
MySystemLib.SystemPublicFuction.checkurl = checkurl;
|
|
MySystemLib.SystemPublicFuction.checkurl = checkurl;
|
|
MySystemLib.SystemPublicFuction.appcheck = "success";
|
|
MySystemLib.SystemPublicFuction.appcheck = "success";
|
|
|
|
+ string conn = Configuration["Setting:SqlConnStr"];
|
|
Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
|
|
Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
|
|
- System.Data.DataTable tablecollection = Library.dbconn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = 'KxsMainServer'");
|
|
|
|
|
|
+ System.Data.DataTable tablecollection = Library.CustomerSqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = 'KxsMainServer'", conn);
|
|
foreach (System.Data.DataRow subtable in tablecollection.Rows)
|
|
foreach (System.Data.DataRow subtable in tablecollection.Rows)
|
|
{
|
|
{
|
|
Dictionary<string, string> Columns = new Dictionary<string, string>();
|
|
Dictionary<string, string> Columns = new Dictionary<string, string>();
|
|
- System.Data.DataTable columncollection = Library.dbconn.dtable("select COLUMN_NAME,DATA_TYPE from information_schema.columns where table_schema = 'KxsMainServer' and TABLE_NAME='" + subtable["TABLE_NAME"].ToString() + "'");
|
|
|
|
|
|
+ System.Data.DataTable columncollection = Library.CustomerSqlConn.dtable("select COLUMN_NAME,DATA_TYPE from information_schema.columns where table_schema = 'KxsMainServer' and TABLE_NAME='" + subtable["TABLE_NAME"].ToString() + "'", conn);
|
|
foreach (System.Data.DataRow column in columncollection.Rows)
|
|
foreach (System.Data.DataRow column in columncollection.Rows)
|
|
{
|
|
{
|
|
string datatype = column["DATA_TYPE"].ToString();
|
|
string datatype = column["DATA_TYPE"].ToString();
|
|
@@ -140,6 +141,7 @@ namespace MySystem
|
|
app.UseExceptionHandler("/Home/Error");
|
|
app.UseExceptionHandler("/Home/Error");
|
|
app.UseHsts();
|
|
app.UseHsts();
|
|
}
|
|
}
|
|
|
|
+ Library.ConfigurationManager.EnvironmentFlag = 2;
|
|
Library.function.WritePage("/", "WebRootPath.txt", env.WebRootPath);
|
|
Library.function.WritePage("/", "WebRootPath.txt", env.WebRootPath);
|
|
// app.UseStatusCodePagesWithReExecute("/public/errpage/pc/{0}.html");
|
|
// app.UseStatusCodePagesWithReExecute("/public/errpage/pc/{0}.html");
|
|
|
|
|