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