欢迎加我的QQ群:193522571,一起来讨论、交流!

随笔分类 -  LinQ

摘要:var docStatusBar = from ee in zDtNetRecord.AsEnumerable() from ff in zDtPvMenu.AsEnumerable() ... 阅读全文
posted @ 2016-06-24 16:17 swtool 阅读(192) 评论(0) 推荐(0) 编辑
摘要://正确 var weldtable = (from tt in database.NDEWeldingCheckData where tt.IsDelete == false && tt.FK_T... 阅读全文
posted @ 2016-01-22 13:13 swtool 阅读(445) 评论(0) 推荐(0) 编辑
摘要:orderby 子句解析为 OrderBy()方法,orderby descending 子句解析为OrderBy Descending()方法: var racers = Formula1.GetChampions(). Where(r = > r.Country == "Brazil"). Or... 阅读全文
posted @ 2016-01-22 13:01 swtool 阅读(6155) 评论(0) 推荐(0) 编辑
摘要:var NewistRows = from ff in LinkToSQL.JobNumberList from gg in LinkToSQL.M1_Test let tt = ( ... 阅读全文
posted @ 2015-07-22 13:43 swtool 阅读(1279) 评论(0) 推荐(0) 编辑
摘要://取得交集 Pn = PnFace.Intersect(PnType).ToList(); //取得并集 Pn = PnFace.Concat(PnType).ToList(); 阅读全文
posted @ 2014-10-16 13:36 swtool 阅读(266) 评论(0) 推荐(0) 编辑
摘要:代码如下:其中cbFace.Text为字段名,TableFace为表名var PnFace = (from n in TableFace select n.GetType().GetProperty(cbFace.Text).GetValue(n, ... 阅读全文
posted @ 2014-10-16 12:48 swtool 阅读(219) 评论(0) 推荐(0) 编辑
摘要:1 private void FormNozzle_Load(object sender, EventArgs e) 2 { 3 Flange f = new Flange(); 4 f.FlangeSystem = ... 阅读全文
posted @ 2014-10-14 16:12 swtool 阅读(441) 评论(0) 推荐(0) 编辑
摘要:DataTable dt = new DataTable(); int n = 3; //用来进行排序的字符串 string myDictionary = "HERABMWSUG"; //... 阅读全文
posted @ 2014-07-13 17:53 swtool 阅读(271) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.IO;namespace LambdaExpressionA... 阅读全文
posted @ 2014-07-13 09:25 swtool 阅读(378) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.IO;namespace LambdaExpressionA... 阅读全文
posted @ 2014-07-13 08:57 swtool 阅读(442) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Diagno... 阅读全文
posted @ 2014-07-12 19:18 swtool 阅读(453) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Diagnostics;namespace Extension... 阅读全文
posted @ 2014-07-12 18:42 swtool 阅读(259) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ToLookupDemo{ class Program { //自定义类 p... 阅读全文
posted @ 2014-07-12 18:22 swtool 阅读(797) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ToDictionaryDemo{ class Program { public clas... 阅读全文
posted @ 2014-07-12 17:06 swtool 阅读(1210) 评论(0) 推荐(0) 编辑

欢迎加我的QQ群:193522571,一起来讨论、交流!
点击右上角即可分享
微信分享提示