From 461ac3a08b135f49165be5295f5ffd1cd08ddb5b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 22 Sep 2017 18:17:00 +0800 Subject: [PATCH] - --- Src/Asp.Net/PerformanceTest/PerformanceTest.csproj | 2 +- Src/Asp.Net/PerformanceTest/Program.cs | 12 ++++++------ .../TestItems/{TestSql.cs => TestGetSql.cs} | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename Src/Asp.Net/PerformanceTest/TestItems/{TestSql.cs => TestGetSql.cs} (98%) diff --git a/Src/Asp.Net/PerformanceTest/PerformanceTest.csproj b/Src/Asp.Net/PerformanceTest/PerformanceTest.csproj index e256d5502..2d5ad8deb 100644 --- a/Src/Asp.Net/PerformanceTest/PerformanceTest.csproj +++ b/Src/Asp.Net/PerformanceTest/PerformanceTest.csproj @@ -72,7 +72,7 @@ - + diff --git a/Src/Asp.Net/PerformanceTest/Program.cs b/Src/Asp.Net/PerformanceTest/Program.cs index 6106137e0..61c0373fd 100644 --- a/Src/Asp.Net/PerformanceTest/Program.cs +++ b/Src/Asp.Net/PerformanceTest/Program.cs @@ -15,18 +15,18 @@ namespace PerformanceTest /// static void Main(string[] args) { - var type = DemoType.GetAll; - var ormType = OrmType.Dapper; + var type = DemoType.GetSql; + var ormType = OrmType.SqlSugar; switch (type) { case DemoType.GetAll: new TestGetAll().Init(ormType); break; case DemoType.GetById: - new TestGetAll().Init(ormType); + new TestGetById().Init(ormType); break; - case DemoType.TestSql: - new TestGetAll().Init(ormType); + case DemoType.GetSql: + new TestGetSql().Init(ormType); break; default: break; @@ -37,7 +37,7 @@ namespace PerformanceTest { GetAll, GetById, - TestSql + GetSql } } } diff --git a/Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs b/Src/Asp.Net/PerformanceTest/TestItems/TestGetSql.cs similarity index 98% rename from Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs rename to Src/Asp.Net/PerformanceTest/TestItems/TestGetSql.cs index 0d7dcb9c0..cc643766f 100644 --- a/Src/Asp.Net/PerformanceTest/TestItems/TestSql.cs +++ b/Src/Asp.Net/PerformanceTest/TestItems/TestGetSql.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace PerformanceTest.TestItems { - public class TestSql + public class TestGetSql { public void Init(OrmType type) {