摘要:
连接池性能测试代码如下: 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... 阅读全文
摘要:
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(); builder.DataSource = "127.0.0.1"; builder.InitialCatalog = "database"; builder.UserID = "user"; builder.Password = "user"; buil... 阅读全文
摘要:
Web.config: C# code: string connString = System.Configuration.ConfigurationManager.AppSettings["ConnString"]; ConnectionStringBuilder: SqlConnectionStringBuilder builder = new SqlConne... 阅读全文
摘要:
SqlConnection con = new SqlConnection(connectionstring); 阅读全文
摘要:
DataSet ds = new DataSet(); ds.EnforceConstraints = true; ds.GetChanges(); ds.AcceptChanges(); if(ds.HasErrors ) ds.ReadXml(); 阅读全文
摘要:
/// ///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... 阅读全文
摘要:
to do 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文