mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update Demo
This commit is contained in:
parent
6247e67528
commit
8d90404993
@ -15,10 +15,29 @@ namespace PerformanceTest
|
||||
/// <param name="args"></param>
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//new TestGetAll().Init(OrmType.Dapper);
|
||||
//new TestGetById().Init(OrmType.EF);
|
||||
new TestSql().Init(OrmType.SqlSugar);
|
||||
var type = DemoType.GetAll;
|
||||
var ormType = OrmType.Dapper;
|
||||
switch (type)
|
||||
{
|
||||
case DemoType.GetAll:
|
||||
new TestGetAll().Init(ormType);
|
||||
break;
|
||||
case DemoType.GetById:
|
||||
new TestGetAll().Init(ormType);
|
||||
break;
|
||||
case DemoType.TestSql:
|
||||
new TestGetAll().Init(ormType);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
Console.ReadKey();
|
||||
}
|
||||
enum DemoType
|
||||
{
|
||||
GetAll,
|
||||
GetById,
|
||||
TestSql
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user