Update Demo

This commit is contained in:
sunkaixuan 2017-09-22 18:13:04 +08:00
parent 6247e67528
commit 8d90404993

View File

@ -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
}
} }
} }