mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-01 19:03:58 +08:00
-
This commit is contained in:
Binary file not shown.
29
OrmTest/ExpressionTest/Method.cs
Normal file
29
OrmTest/ExpressionTest/Method.cs
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
using OrmTest.Models;
|
||||||
|
using SqlSugar;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace OrmTest.ExpressionTest
|
||||||
|
{
|
||||||
|
public class Method : ExpTestBase
|
||||||
|
{
|
||||||
|
private Method() { }
|
||||||
|
public Method(int eachCount)
|
||||||
|
{
|
||||||
|
this.Count = eachCount;
|
||||||
|
}
|
||||||
|
internal void Init()
|
||||||
|
{
|
||||||
|
base.Begin();
|
||||||
|
for (int i = 0; i < base.Count; i++)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
base.End("Method Test");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="ExpressionTest\ExpTestBase.cs" />
|
<Compile Include="ExpressionTest\ExpTestBase.cs" />
|
||||||
<Compile Include="ExpressionTest\Field.cs" />
|
<Compile Include="ExpressionTest\Field.cs" />
|
||||||
|
<Compile Include="ExpressionTest\Method.cs" />
|
||||||
<Compile Include="ExpressionTest\Select.cs" />
|
<Compile Include="ExpressionTest\Select.cs" />
|
||||||
<Compile Include="ExpressionTest\Where.cs" />
|
<Compile Include="ExpressionTest\Where.cs" />
|
||||||
<Compile Include="Models\School.cs" />
|
<Compile Include="Models\School.cs" />
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ namespace OrmTest
|
|||||||
new OrmTest.ExpressionTest.Select(eachCount).Init();
|
new OrmTest.ExpressionTest.Select(eachCount).Init();
|
||||||
new OrmTest.ExpressionTest.Field(eachCount).Init();
|
new OrmTest.ExpressionTest.Field(eachCount).Init();
|
||||||
new OrmTest.ExpressionTest.Where(eachCount).Init();
|
new OrmTest.ExpressionTest.Where(eachCount).Init();
|
||||||
|
new OrmTest.ExpressionTest.Method(eachCount).Init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user