摘要:
DataTable dt= dbhelp.Query(sql).Tables[0]; IEnumerable> result = dt.Rows.Cast().GroupBy(dr => dr["A"].ToString());//按A分组 foreach (IGrouping ig in result) { string s = ig.Key; A int i= ig.Count(); A类型... 阅读全文
摘要:
.Invoke((MethodInvoker)delegate { }); 阅读全文