2019-01-25 22:40:19 +08:00
|
|
|
|
using OrmTest.PerformanceTesting;
|
2017-03-04 15:07:58 +08:00
|
|
|
|
using OrmTest.UnitTest;
|
2019-01-25 22:40:19 +08:00
|
|
|
|
using System;
|
2017-04-24 01:31:37 +08:00
|
|
|
|
|
2017-01-07 21:54:51 +08:00
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2018-11-11 12:47:10 +08:00
|
|
|
|
|
2019-01-10 18:46:59 +08:00
|
|
|
|
/***BUG repair test***/
|
|
|
|
|
new BugTest.Bug1().Init();
|
|
|
|
|
new BugTest.Bug2().Init();
|
|
|
|
|
|
|
|
|
|
/***Unit Test***/
|
2018-11-11 12:47:10 +08:00
|
|
|
|
new SqlRemark(2).Init();
|
2018-10-13 05:55:04 +08:00
|
|
|
|
new Select(1).Init();
|
|
|
|
|
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();
|
|
|
|
|
new DataTest(1).Init();
|
|
|
|
|
new EnumTest(1).Init();
|
|
|
|
|
/***Performance Test***/
|
2019-01-12 18:21:53 +08:00
|
|
|
|
new SqlSugarPerformance(10).Select();
|
2018-10-13 05:55:04 +08:00
|
|
|
|
|
|
|
|
|
/***Demo***/
|
|
|
|
|
Demo.Insert.Init();
|
2019-01-11 21:42:42 +08:00
|
|
|
|
Demo.Query.Init();
|
2018-10-13 05:55:04 +08:00
|
|
|
|
Demo.Update.Init();
|
|
|
|
|
Demo.DbFirst.Init();
|
|
|
|
|
Demo.JoinSql.Init();
|
|
|
|
|
Demo.Filter.Init();
|
|
|
|
|
Demo.ComplexModel.Init();
|
|
|
|
|
Demo.CodeFirst.Init();
|
|
|
|
|
Demo.Aop.Init();
|
|
|
|
|
Demo.MasterSlave.Init();
|
|
|
|
|
Demo.SharedConnection.Init();
|
|
|
|
|
Demo.ExtSqlFun.Init();
|
|
|
|
|
Demo.QueryableView.Init();
|
|
|
|
|
Demo.AttributeDemo.Init();
|
2018-10-14 09:26:53 +08:00
|
|
|
|
Demo.Mapper.Init();
|
2018-10-16 08:49:59 +08:00
|
|
|
|
Demo.ExtEntity.Init();
|
2018-11-28 15:23:06 +08:00
|
|
|
|
Demo.VersionValidation.Init();
|
2019-01-11 21:42:42 +08:00
|
|
|
|
Demo.Delete.Init();
|
2019-01-25 21:45:15 +08:00
|
|
|
|
Demo.InsertOrUpdate.Init();
|
|
|
|
|
Demo.Debugger.Init();
|
2019-01-25 22:40:19 +08:00
|
|
|
|
|
|
|
|
|
Console.WriteLine("all successfully.");
|
|
|
|
|
Console.ReadKey();
|
2017-01-07 21:54:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|