搜索

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

发表于 2025-11-05 00:02:47 来源:益强智未来
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.
随机为您推荐
版权声明:本站资源均来自互联网,如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

Copyright © 2016 Powered by CYQ.Data数据框架的性能评测,益强智未来  滇ICP备2023006006号-17sitemap

回顶部