mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
-
This commit is contained in:
parent
8d90404993
commit
461ac3a08b
@ -72,7 +72,7 @@
|
||||
<Compile Include="Models\TestEntity.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="TestItems\TestSql.cs" />
|
||||
<Compile Include="TestItems\TestGetSql.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
|
@ -15,18 +15,18 @@ namespace PerformanceTest
|
||||
/// <param name="args"></param>
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace PerformanceTest.TestItems
|
||||
{
|
||||
public class TestSql
|
||||
public class TestGetSql
|
||||
{
|
||||
public void Init(OrmType type)
|
||||
{
|
Loading…
Reference in New Issue
Block a user