摘要: 第一种:有局限性,只能使用主表的Rpl_WorkFlow里的字段排序 var list = LepulsDB.DBContext.Rpl_WorkFlow.Select() .Join(McDB.Com_Structure, (t, f) => t.Com_StructureID == f.Com_ 阅读全文
posted @ 2018-09-12 11:20 飞刀软件 阅读(1613) 评论(0) 推荐(0) 编辑
摘要: 业务开发,使用foreach遍历几千条数据,并有一定的业务逻辑处理,执行非常耗时,想了一个优化办法就是使用Parallel.ForEach 并行循环: 正常foreach的写法: #region //foreach (var InspCategItem in InspCategList) //{ / 阅读全文
posted @ 2018-09-12 11:13 飞刀软件 阅读(2099) 评论(0) 推荐(0) 编辑