CYQ.Data数据框架的性能评测

CYQ.Data数据框架的性能评测
复制publicstatic void ADO_NET()   {       DateTime start = DateTime.Now;       SqlConnection con = new SqlConnection("server=.;database=abc;uid=sa;pwd=123456");       SqlCommand com = new SqlCommand();       com.Connection = con;       com.CommandText = "insert into Users(UserName,据框架Password) values(@UserName,@Password)";       con.Open();   for (int i = 0; i < count; i++)       {          com.Parameters.Clear();          com.Parameters.AddWithValue("@UserName", "U_" + System.Threading.Thread.CurrentThread.ManagedThreadId);          com.Parameters.AddWithValue("@Password", "P_" + i);          if (com.ExecuteNonQuery() > -1)          {             ok2++;          }       }       con.Close();       TimeSpan ts = DateTime.Now - start;       Console.WriteLine("ADO.net [ADO.net]:" + ts.TotalSeconds + "[秒]--" + ok2);   }   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.
IT科技类资讯
上一篇:密码错误导致的电脑服务器安全隐患(探索密码错误背后的风险与解决方案)
下一篇:华为畅享7Plus32如何为你带来无限乐趣?(探索畅享7Plus32的全方位功能和卓越性能)