mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 01:46:18 +08:00
-
This commit is contained in:
parent
f3009416dd
commit
6247e67528
@ -8,9 +8,9 @@ namespace PerformanceTest
|
|||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分开测试比较公平
|
/// 注意注意注意注意注意:分开测试比较公平,并且请在Realse模式下启动程序(SqlSugar直接引用的是项目)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="args"></param>
|
/// <param name="args"></param>
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
|
@ -46,7 +46,7 @@ namespace PerformanceTest.TestItems
|
|||||||
{
|
{
|
||||||
using (SqlSugarClient conn = Config.GetSugarConn())
|
using (SqlSugarClient conn = Config.GetSugarConn())
|
||||||
{
|
{
|
||||||
var list2 = conn.Ado.SqlQuery<Test>("select top 10 * from Test"); ;
|
var list2 = conn.Ado.SqlQuery<Test>("select top 20 * from Test"); ;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ namespace PerformanceTest.TestItems
|
|||||||
{
|
{
|
||||||
using (SqlConnection conn = new SqlConnection(Config.connectionString))
|
using (SqlConnection conn = new SqlConnection(Config.connectionString))
|
||||||
{
|
{
|
||||||
var list = conn.Query<Test>("select top 10 * from Test");
|
var list = conn.Query<Test>("select top 20 * from Test");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ namespace PerformanceTest.TestItems
|
|||||||
{
|
{
|
||||||
using (EFContext conn = new EFContext(Config.connectionString))
|
using (EFContext conn = new EFContext(Config.connectionString))
|
||||||
{
|
{
|
||||||
var list = conn.Database.SqlQuery<Test>("select top 10 * from Test").ToList();
|
var list = conn.Database.SqlQuery<Test>("select top 20 * from Test").ToList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user