05 2008 档案
摘要:debug多多
阅读全文
摘要:你有可能熟悉out,ref.你熟悉params吗?不知道可以看看。
阅读全文
摘要:不错的一篇关于ViewState的E文文章。
阅读全文
摘要:using System; using System.IO; class Program { static void Main() { try { // Initialize a Stream resource to pass // to the DisposableResource class....
阅读全文
摘要: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
阅读全文
摘要:From:MSDN Example private static void DemonstrateMergeTable() { // Demonstrate merging, within and without // preserving changes. // In this example, take these actions: ...
阅读全文
摘要://Create DataTable DataTable dt = new DataTable(); dt.CaseSensitive = true; //Create DataColumns DataColumn col1 = new DataColumn("id", typeof(int)); DataColumn...
阅读全文
摘要:using System.Collections; using System.Reflection; using System.Data; using System; public class CADataConverter { private static Hashtable types = new Hashtable(); private CADataConverter() ...
阅读全文
摘要:from:http://www.cnblogs.com/David-weihw/archive/2006/11/17/563701.html 今天我的同事,被ExecuteNonQuery 方法给困住了。 同事只知道ExecuteNonQuery返回受影响的行数,但不知道对于SQL 的 select命令返回值为-1。 更准确的说法是: 对于 UPD...
阅读全文
摘要:ConnectionStringSettings setting = new ConnectionStringSettings(); setting = ConfigurationManager.ConnectionStrings["Codematic"]; DbProviderFactory facotory = DbProviderFactories.GetFa...
阅读全文