// See https://aka.ms/new-console-template for more information using Ys.Core.Common; using djy.Paas.Service; using djy.Model; using djy.Paas.Model; sysOptionConfig.YsWebconfig.DataConnList.Add(new DataConnEntity { SysKey = "djydb" , TitleName = "大简云新库" ,Index=100 ,DataType= YsDataType.SqlServer ,Status=0 ,ConnString= "Data Source =121.42.232.16,5099; Initial Catalog=djy_PubliceDatatest; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true" }); sysOptionConfig.YsWebconfig.DataConnList.Add(new DataConnEntity { SysKey = "djyolddb" , TitleName = "大简云系统" , Index = 100 , DataType = YsDataType.SqlServer , Status = 0 , ConnString = "Data Source =121.42.232.16,5099; Initial Catalog=DsPingTaitest; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true" }); DbContext.DbBusInit(); var _server = new BaoguanService(); var data =_server.RunOpenDanyiParseToOrder(); Console.WriteLine(data.Data); //var str = ""; //foreach (var col in typeof(tb_BaoGuanOrderList).GetProperties().ToList().OrderBy(w=>w.Name)) //{ // str = str + $",{col.Name}=\n\r"; //} //Console.WriteLine(str);