上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 66 下一页
摘要: 概念性的东东。 阅读全文
posted @ 2008-05-08 22:33 roboth 阅读(601) 评论(0) 推荐(0)
摘要: In a project I'm doing I needed to basically do a DISTINCT on a couple fields in a DataTable that I had used earlier in code. Did some Google searching and came up with this MS KB on the subject. I was hoping to find it in the Framework, but hey, writing a little extra code never hurt anyway. Looking over the code though I found that I just didn't really like it. Biggest reason being it only took one field. I wanted to be able to pass in n number of fields, so I rewrote it and did a little 阅读全文
posted @ 2008-05-05 19:38 roboth 阅读(561) 评论(4) 推荐(0)
摘要: From:MSDN Example private static void DemonstrateMergeTable() { // Demonstrate merging, within and without // preserving changes. // In this example, take these actions: ... 阅读全文
posted @ 2008-05-04 20:01 roboth 阅读(193) 评论(1) 推荐(0)
摘要: //Create DataTable DataTable dt = new DataTable(); dt.CaseSensitive = true; //Create DataColumns DataColumn col1 = new DataColumn("id", typeof(int)); DataColumn... 阅读全文
posted @ 2008-05-04 18:51 roboth 阅读(246) 评论(0) 推荐(0)
摘要: using System.Collections; using System.Reflection; using System.Data; using System; public class CADataConverter { private static Hashtable types = new Hashtable(); private CADataConverter() ... 阅读全文
posted @ 2008-05-03 19:37 roboth 阅读(279) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 66 下一页