diff --git a/Src/Asp.Net/PerformanceTest/Program.cs b/Src/Asp.Net/PerformanceTest/Program.cs index e6c6bb0fe..6106137e0 100644 --- a/Src/Asp.Net/PerformanceTest/Program.cs +++ b/Src/Asp.Net/PerformanceTest/Program.cs @@ -15,10 +15,29 @@ namespace PerformanceTest /// 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 + } } }