摘要: List<SwipeCardData> CardDataList = new List<SwipeCardData>(); //返回是xelement的集合,首先获得真正的表的节点。使用Nodes.Descendants("Table"),获得指定标签,然后foreach遍历 foreach (XE 阅读全文
posted @ 2021-07-08 21:57 林小强 阅读(134) 评论(0) 推荐(0) 编辑
摘要: private IHttpContextAccessor _HttpContextAccessor; //注入 var Host= _HttpContextAccessor.HttpContext.Request.Host.ToString(); 阅读全文
posted @ 2021-07-08 21:55 林小强 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1、首先配置一下Web服务器(IIS) 2、与ASP.NET时代不同,ASP.NET Core不再是由IIS工作进程(w3wp.exe)托管,而是使用自托管Web服务器(Kestrel)运行,IIS则是作为反向代理的角色转发请求到Kestrel不同端口的ASP.NET Core程序中,随后就将接收到 阅读全文
posted @ 2021-04-19 01:28 林小强 阅读(401) 评论(0) 推荐(0) 编辑
摘要: Script-Migration -From -To Script-Migration -From 20210119073448_AddIntentionOrdersColumn -To 20210301032019_LocalProfitRangeAddVersionNumber 阅读全文
posted @ 2021-03-01 16:50 林小强 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1、先将数据库常规设置弄好,允许远程连接设置TCP属性端口为1433之类的; 2、然后在服务器的防火墙设置中添加新的入站规则(端口–TCP–1433); 3、然后到阿里云服务器管理控制台的防火墙中添加规则,添加TCP 1433; 阅读全文
posted @ 2021-01-09 22:53 林小强 阅读(718) 评论(0) 推荐(0) 编辑
摘要: c#去掉小数点后的无效0 decimal d = 0.0500m;d.ToString("0.##")就出来了也可以这样 string.Format("{0:0.##}",d000).##表示最多保留2位有效数字,但是不包括0,就是说 如果上面d=0.5000,出来后也只是0.5,方便多了 阅读全文
posted @ 2020-12-28 14:22 林小强 阅读(358) 评论(0) 推荐(0) 编辑
摘要: RecurringJob.AddOrUpdate(() =>GetInterfaceCradData(), "0 50 01 * * ?", TimeZoneInfo.Local); 阅读全文
posted @ 2020-12-25 13:56 林小强 阅读(1084) 评论(2) 推荐(0) 编辑
摘要: var DateSum = new List<string>(); for (var date = Convert.ToDateTime(input.StartTime); date <= Convert.ToDateTime(input.endTime); date=date.AddDays(1) 阅读全文
posted @ 2020-11-28 21:14 林小强 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: public class JobSchedulerWork_Test { public static async void GetMESData() { //调度器工厂 ISchedulerFactory Work = new StdSchedulerFactory(); //调度器 ISchedu 阅读全文
posted @ 2020-11-22 16:03 林小强 阅读(128) 评论(0) 推荐(0) 编辑
摘要: ABCList[ABCList.Min(ABCList.IndexOf)].Name ABCList[ABCList.Max(ABCList.IndexOf)].Name 阅读全文
posted @ 2020-11-10 14:39 林小强 阅读(1379) 评论(0) 推荐(0) 编辑