/// <summary> /// DbExecutor查询 /// </summary> /// <returns></returns> SpeedTest.SpeedResult DbExecutor_Select(int count) { using (var sp = new SpeedTest().Begin()) { // 循环10万次 for (int i = 0; i < count; i++) { using (var db = new DbExecutor(DataBaseType.SqlServer, connString, 60)) { db.GetDataSet(CommandType.Text, "Select * from [Speed] Where ID > 1"); } } return sp.Result; } }