This commit is contained in:
sunkaixuan 2017-05-16 13:55:57 +08:00
parent 0340d164a2
commit 9562e71cfa
17 changed files with 18 additions and 18 deletions

View File

@ -61,7 +61,7 @@
<Compile Include="PerformanceTesting\PerformanceBase.cs" /> <Compile Include="PerformanceTesting\PerformanceBase.cs" />
<Compile Include="PerformanceTesting\SqlSugarPerformance.cs" /> <Compile Include="PerformanceTesting\SqlSugarPerformance.cs" />
<Compile Include="UnitTest\Delete.cs" /> <Compile Include="UnitTest\Delete.cs" />
<Compile Include="UnitTest\ExpressionTest\ExpTestBase.cs" /> <Compile Include="UnitTest\UnitTestBase.cs" />
<Compile Include="UnitTest\ExpressionTest\Field.cs" /> <Compile Include="UnitTest\ExpressionTest\Field.cs" />
<Compile Include="UnitTest\Insert.cs" /> <Compile Include="UnitTest\Insert.cs" />
<Compile Include="UnitTest\Mapping .cs" /> <Compile Include="UnitTest\Mapping .cs" />

View File

@ -25,8 +25,8 @@ namespace OrmTest
//new SingleQuery(1).Init(); //new SingleQuery(1).Init();
//new SelectQuery(1).Init(); //new SelectQuery(1).Init();
//new AutoClose(1).Init(); //new AutoClose(1).Init();
new Insert(1).Init(); //new Insert(1).Init();
//new Delete(1).Init(); new Delete(1).Init();
//Performance Test //Performance Test
//new SqlSugarPerformance(100).Select(); //new SqlSugarPerformance(100).Select();
} }

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace OrmTest namespace OrmTest
{ {
public class Delete : ExpTestBase public class Delete : UnitTestBase
{ {
private Delete() { } private Delete() { }
public Delete(int eachCount) public Delete(int eachCount)

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Field : ExpTestBase public class Field : UnitTestBase
{ {
private Field() { } private Field() { }
public Field(int eachCount) public Field(int eachCount)

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Method : ExpTestBase public class Method : UnitTestBase
{ {
private Method() { } private Method() { }
public Method(int eachCount) public Method(int eachCount)

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Select : ExpTestBase public class Select : UnitTestBase
{ {
private Select() { } private Select() { }
public Select(int eachCount) public Select(int eachCount)

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Where : ExpTestBase public class Where : UnitTestBase
{ {
private Where() { } private Where() { }
public Where(int eachCount) public Where(int eachCount)

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Insert : ExpTestBase public class Insert : UnitTestBase
{ {
private Insert() { } private Insert() { }
public Insert(int eachCount) public Insert(int eachCount)

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Mapping:ExpTestBase public class Mapping:UnitTestBase
{ {
private Mapping() { } private Mapping() { }
public Mapping(int eachCount) public Mapping(int eachCount)

View File

@ -8,7 +8,7 @@ using System.Linq.Expressions;
using OrmTest.Models; using OrmTest.Models;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class JoinQuery : ExpTestBase public class JoinQuery : UnitTestBase
{ {
private JoinQuery() { } private JoinQuery() { }
public JoinQuery(int eachCount) public JoinQuery(int eachCount)

View File

@ -8,7 +8,7 @@ using System.Linq.Expressions;
using OrmTest.Models; using OrmTest.Models;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class SelectQuery : ExpTestBase public class SelectQuery : UnitTestBase
{ {
private SelectQuery() { } private SelectQuery() { }
public SelectQuery(int eachCount) public SelectQuery(int eachCount)

View File

@ -8,7 +8,7 @@ using System.Linq.Expressions;
using OrmTest.Models; using OrmTest.Models;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class SingleQuery : ExpTestBase public class SingleQuery : UnitTestBase
{ {
private SingleQuery() { } private SingleQuery() { }
public SingleQuery(int eachCount) public SingleQuery(int eachCount)

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class Attribute : ExpTestBase public class Attribute : UnitTestBase
{ {
public Attribute(int eachCount) public Attribute(int eachCount)
{ {

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class AutoClose : ExpTestBase public class AutoClose : UnitTestBase
{ {
public AutoClose(int eachCount) public AutoClose(int eachCount)
{ {

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class MapColumn : ExpTestBase public class MapColumn : UnitTestBase
{ {
public SqlSugarClient GetInstance() public SqlSugarClient GetInstance()
{ {

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class MapTable : ExpTestBase public class MapTable : UnitTestBase
{ {
public void Init() public void Init()
{ {

View File

@ -4,7 +4,7 @@ using SqlSugar;
using System.Linq; using System.Linq;
namespace OrmTest.UnitTest namespace OrmTest.UnitTest
{ {
public class ExpTestBase public class UnitTestBase
{ {
public int Count { get; set; } public int Count { get; set; }
private DateTime BeginTime { get; set; } private DateTime BeginTime { get; set; }