上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 43 下一页
摘要: 连接池性能测试代码如下: 1.连接池设置为True 耗时:00:00:00.4972304 2.连接池设置为False 耗时:00:00:43.6183675 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 using System.Diagno... 阅读全文
posted @ 2008-08-12 11:53 许晓光 阅读(269) 评论(0) 推荐(0) 编辑
摘要: SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(); builder.DataSource = "127.0.0.1"; builder.InitialCatalog = "database"; builder.UserID = "user"; builder.Password = "user"; buil... 阅读全文
posted @ 2008-08-11 13:20 许晓光 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Web.config: C# code: string connString = System.Configuration.ConfigurationManager.AppSettings["ConnString"]; ConnectionStringBuilder: SqlConnectionStringBuilder builder = new SqlConne... 阅读全文
posted @ 2008-08-08 11:22 许晓光 阅读(805) 评论(0) 推荐(0) 编辑
摘要: SqlConnection con = new SqlConnection(connectionstring); 阅读全文
posted @ 2008-08-07 17:37 许晓光 阅读(168) 评论(0) 推荐(0) 编辑
摘要: DataSet ds = new DataSet(); ds.EnforceConstraints = true; ds.GetChanges(); ds.AcceptChanges(); if(ds.HasErrors ) ds.ReadXml(); 阅读全文
posted @ 2008-08-05 16:46 许晓光 阅读(173) 评论(0) 推荐(0) 编辑
摘要: /// ///Represents a strongly typed in-memory cache of data. /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [global::System.Ser... 阅读全文
posted @ 2008-08-04 16:05 许晓光 阅读(752) 评论(0) 推荐(0) 编辑
摘要: to do 阅读全文
posted @ 2008-08-04 12:58 许晓光 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 class Program 2 { 3 static void Main() 4 { 5 int [] ar = {1,2,3,4,5}; 6 7 //IEnumerable ... 阅读全文
posted @ 2008-08-04 11:35 许晓光 阅读(145) 评论(0) 推荐(0) 编辑
摘要: A lambda expression is an anonymous funtion that can contain expressions and statements, Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 class Pr... 阅读全文
posted @ 2008-08-01 14:14 许晓光 阅读(149) 评论(0) 推荐(0) 编辑
摘要: You can use Extension Methods to add methods to existing types without declaring a new derived type, recomelling... Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHig... 阅读全文
posted @ 2008-07-31 10:24 许晓光 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 43 下一页