mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
6a6c0c2aec
commit
067105cb72
@ -44,13 +44,13 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Config.cs" />
|
||||
<Compile Include="ExpressionTest\ExpTestBase.cs" />
|
||||
<Compile Include="ExpressionTest\Field.cs" />
|
||||
<Compile Include="ExpressionTest\Join.cs" />
|
||||
<Compile Include="ExpressionTest\Method.cs" />
|
||||
<Compile Include="ExpressionTest\Select.cs" />
|
||||
<Compile Include="ExpressionTest\Single.cs" />
|
||||
<Compile Include="ExpressionTest\Where.cs" />
|
||||
<Compile Include="UnitTest\ExpressionTest\ExpTestBase.cs" />
|
||||
<Compile Include="UnitTest\ExpressionTest\Field.cs" />
|
||||
<Compile Include="UnitTest\Query\Join.cs" />
|
||||
<Compile Include="UnitTest\ExpressionTest\Method.cs" />
|
||||
<Compile Include="UnitTest\ExpressionTest\Select.cs" />
|
||||
<Compile Include="UnitTest\Query\Single.cs" />
|
||||
<Compile Include="UnitTest\ExpressionTest\Where.cs" />
|
||||
<Compile Include="Models\School.cs" />
|
||||
<Compile Include="Models\Student.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
|
@ -8,7 +8,7 @@ using System.Linq.Expressions;
|
||||
using SqlSugar;
|
||||
using OrmTest.Models;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
using OrmTest.UnitTest;
|
||||
namespace OrmTest
|
||||
{
|
||||
|
||||
@ -18,12 +18,11 @@ namespace OrmTest
|
||||
{
|
||||
//Expression To Sql Unit Test
|
||||
int eachCount = 1;
|
||||
new OrmTest.ExpressionTest.Select(eachCount).Init();
|
||||
new OrmTest.ExpressionTest.Field(eachCount).Init();
|
||||
new OrmTest.ExpressionTest.Where(eachCount).Init();
|
||||
new OrmTest.ExpressionTest.Method(eachCount).Init();
|
||||
new OrmTest.ExpressionTest.Join(eachCount).Init();
|
||||
new OrmTest.ExpressionTest.Single(eachCount).Init();
|
||||
new Field(eachCount).Init();
|
||||
new Where(eachCount).Init();
|
||||
new Method(eachCount).Init();
|
||||
new JoinQuery(eachCount).Init();
|
||||
new SingleQuery(eachCount).Init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using SqlSugar;
|
||||
using System.Linq;
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class ExpTestBase
|
||||
{
|
@ -7,7 +7,7 @@ using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Field:ExpTestBase
|
||||
{
|
@ -7,7 +7,7 @@ using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Method : ExpTestBase
|
||||
{
|
@ -7,7 +7,7 @@ using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Select : ExpTestBase
|
||||
{
|
@ -7,7 +7,7 @@ using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Where : ExpTestBase
|
||||
{
|
@ -6,12 +6,12 @@ using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using System.Linq.Expressions;
|
||||
using OrmTest.Models;
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Join : ExpTestBase
|
||||
public class JoinQuery : ExpTestBase
|
||||
{
|
||||
private Join() { }
|
||||
public Join(int eachCount)
|
||||
private JoinQuery() { }
|
||||
public JoinQuery(int eachCount)
|
||||
{
|
||||
this.Count = eachCount;
|
||||
}
|
@ -6,12 +6,12 @@ using System.Threading.Tasks;
|
||||
using SqlSugar;
|
||||
using System.Linq.Expressions;
|
||||
using OrmTest.Models;
|
||||
namespace OrmTest.ExpressionTest
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Single : ExpTestBase
|
||||
public class SingleQuery : ExpTestBase
|
||||
{
|
||||
private Single() { }
|
||||
public Single(int eachCount)
|
||||
private SingleQuery() { }
|
||||
public SingleQuery(int eachCount)
|
||||
{
|
||||
this.Count = eachCount;
|
||||
}
|
Loading…
Reference in New Issue
Block a user