mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
-
This commit is contained in:
parent
8d90404993
commit
461ac3a08b
@ -72,7 +72,7 @@
|
|||||||
<Compile Include="Models\TestEntity.cs" />
|
<Compile Include="Models\TestEntity.cs" />
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="TestItems\TestSql.cs" />
|
<Compile Include="TestItems\TestGetSql.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
|
@ -15,18 +15,18 @@ namespace PerformanceTest
|
|||||||
/// <param name="args"></param>
|
/// <param name="args"></param>
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var type = DemoType.GetAll;
|
var type = DemoType.GetSql;
|
||||||
var ormType = OrmType.Dapper;
|
var ormType = OrmType.SqlSugar;
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case DemoType.GetAll:
|
case DemoType.GetAll:
|
||||||
new TestGetAll().Init(ormType);
|
new TestGetAll().Init(ormType);
|
||||||
break;
|
break;
|
||||||
case DemoType.GetById:
|
case DemoType.GetById:
|
||||||
new TestGetAll().Init(ormType);
|
new TestGetById().Init(ormType);
|
||||||
break;
|
break;
|
||||||
case DemoType.TestSql:
|
case DemoType.GetSql:
|
||||||
new TestGetAll().Init(ormType);
|
new TestGetSql().Init(ormType);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -37,7 +37,7 @@ namespace PerformanceTest
|
|||||||
{
|
{
|
||||||
GetAll,
|
GetAll,
|
||||||
GetById,
|
GetById,
|
||||||
TestSql
|
GetSql
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PerformanceTest.TestItems
|
namespace PerformanceTest.TestItems
|
||||||
{
|
{
|
||||||
public class TestSql
|
public class TestGetSql
|
||||||
{
|
{
|
||||||
public void Init(OrmType type)
|
public void Init(OrmType type)
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user