You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
// 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); |