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