2017-01-07 21:54:51 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
using OrmTest.Models;
|
2017-01-08 00:30:49 +08:00
|
|
|
|
using System.Data.SqlClient;
|
2017-03-04 15:07:58 +08:00
|
|
|
|
using OrmTest.UnitTest;
|
2017-04-24 01:31:37 +08:00
|
|
|
|
using OrmTest.PerformanceTesting;
|
|
|
|
|
|
2017-01-07 21:54:51 +08:00
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2017-05-22 02:14:28 +08:00
|
|
|
|
/***Unit Test***/
|
|
|
|
|
new Field(1).Init();
|
|
|
|
|
new Where(1).Init();
|
|
|
|
|
new Method(1).Init();
|
|
|
|
|
new JoinQuery(1).Init();
|
|
|
|
|
new SingleQuery(1).Init();
|
|
|
|
|
new SelectQuery(1).Init();
|
|
|
|
|
new AutoClose(1).Init();
|
|
|
|
|
new Insert(1).Init();
|
|
|
|
|
new Delete(1).Init();
|
|
|
|
|
new Update(1).Init();
|
|
|
|
|
new Mapping(1).Init();
|
2017-05-17 01:36:06 +08:00
|
|
|
|
|
2017-05-22 02:14:28 +08:00
|
|
|
|
/***Performance Test***/
|
|
|
|
|
new SqlSugarPerformance(100).Select();
|
2017-05-17 01:36:06 +08:00
|
|
|
|
|
2017-05-21 22:33:21 +08:00
|
|
|
|
/***Demo***/
|
|
|
|
|
OrmTest.Demo.Query.Init();
|
2017-05-22 00:46:52 +08:00
|
|
|
|
OrmTest.Demo.Insert.Init();
|
2017-05-22 01:32:35 +08:00
|
|
|
|
OrmTest.Demo.Delete.Init();
|
2017-05-22 02:27:40 +08:00
|
|
|
|
OrmTest.Demo.Update.Init();
|
2017-01-07 21:54:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|