2023-11-21 23:58:20 +08:00
|
|
|
|
using Demo;
|
|
|
|
|
using SqlSeverTest.UserTestCases;
|
2023-12-21 00:00:39 +08:00
|
|
|
|
using SqlSeverTest.UserTestCases.UnitTest;
|
2023-11-06 21:44:56 +08:00
|
|
|
|
using SqlSugar;
|
2019-05-17 22:26:30 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
public partial class NewUnitTest
|
|
|
|
|
{
|
|
|
|
|
public static SqlSugarClient Db=> new SqlSugarClient(new ConnectionConfig()
|
|
|
|
|
{
|
|
|
|
|
DbType = DbType.SqlServer,
|
|
|
|
|
ConnectionString = Config.ConnectionString,
|
|
|
|
|
InitKeyType = InitKeyType.Attribute,
|
|
|
|
|
IsAutoCloseConnection = true,
|
|
|
|
|
AopEvents = new AopEvents
|
|
|
|
|
{
|
|
|
|
|
OnLogExecuting = (sql, p) =>
|
|
|
|
|
{
|
2023-10-03 11:44:53 +08:00
|
|
|
|
Console.WriteLine(UtilMethods.GetNativeSql(sql,p));
|
2019-05-17 22:26:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2019-06-04 21:03:27 +08:00
|
|
|
|
|
|
|
|
|
public static void RestData()
|
|
|
|
|
{
|
|
|
|
|
Db.DbMaintenance.TruncateTable<Order>();
|
|
|
|
|
Db.DbMaintenance.TruncateTable<OrderItem>();
|
|
|
|
|
}
|
2019-05-17 22:26:30 +08:00
|
|
|
|
public static void Init()
|
|
|
|
|
{
|
2025-04-01 19:45:59 +08:00
|
|
|
|
Unitadfasdysss.Init();
|
2025-04-01 13:29:10 +08:00
|
|
|
|
Unitdfafassfa.Init();
|
2025-03-24 15:48:46 +08:00
|
|
|
|
Unitasdfays.Init();
|
2025-03-17 09:29:27 +08:00
|
|
|
|
Unitsadfadsayss.Init();
|
2025-03-14 11:19:27 +08:00
|
|
|
|
Unitadfsa1ysfds.Init();
|
2025-03-11 20:12:48 +08:00
|
|
|
|
Unitdsadfays.Init();
|
2025-03-11 12:31:22 +08:00
|
|
|
|
UnitDADF231YAA.Init();
|
2025-03-10 14:36:10 +08:00
|
|
|
|
Unitadfasyya.Init();
|
2025-02-14 18:10:09 +08:00
|
|
|
|
Unitysadfay2.Init();
|
2025-02-01 14:50:55 +08:00
|
|
|
|
Unitdfaatsd2.Init();
|
2025-02-01 13:07:59 +08:00
|
|
|
|
Unityadfasasdfa.Init();
|
2025-01-17 16:52:35 +08:00
|
|
|
|
Unitsdfaafa.Init();
|
2024-11-25 17:47:27 +08:00
|
|
|
|
Unitadfayyadfa.Init();
|
2024-08-25 15:45:09 +08:00
|
|
|
|
Unitsdfa1231.Init();
|
2024-08-14 20:23:04 +08:00
|
|
|
|
Unitasxdfaaa.Init();
|
2024-08-12 17:39:58 +08:00
|
|
|
|
UnitSplitadfaf1.Init();
|
2024-05-20 14:17:36 +08:00
|
|
|
|
Unitaadfas1.Init();
|
2024-05-15 11:25:41 +08:00
|
|
|
|
Unitadfasda.Init();
|
2024-05-09 11:44:01 +08:00
|
|
|
|
Unita3affafa.Init();
|
2024-05-06 18:50:29 +08:00
|
|
|
|
UnitEnumTest.Init();
|
2024-04-29 09:28:31 +08:00
|
|
|
|
Unitadf1yaadfa.Init();
|
2024-04-19 19:56:54 +08:00
|
|
|
|
CrossDatabase03.Init();
|
2024-03-28 13:49:06 +08:00
|
|
|
|
CrossDatabase02.Init();
|
2024-03-19 22:31:24 +08:00
|
|
|
|
UnitDynamicCoread12321.Init();
|
2024-03-19 16:08:00 +08:00
|
|
|
|
UnitManyToManyadfafa.Init();
|
2024-03-15 18:09:33 +08:00
|
|
|
|
UnitAsyncToken.Init();
|
2024-03-06 21:11:41 +08:00
|
|
|
|
UnitManyToMany121231.Init();
|
2024-03-05 16:49:15 +08:00
|
|
|
|
UnitFilteradfa.Init();
|
2024-02-18 16:50:22 +08:00
|
|
|
|
UnitWeek.Init();
|
2024-02-06 16:27:21 +08:00
|
|
|
|
Unitadfaasdfaaa.Init();
|
|
|
|
|
Unitatadffaa1.Init();
|
|
|
|
|
UnitOneToManyNsdfafa.Init();
|
|
|
|
|
UCustomConditionalFunc.Init();
|
2023-12-25 23:46:54 +08:00
|
|
|
|
UnitSelectNASFDADSFA.Init();
|
2023-12-22 18:35:16 +08:00
|
|
|
|
UnitOneToOneFilter.Init();
|
2023-12-21 00:00:39 +08:00
|
|
|
|
UnitOneToManyNsdfafa.Init();
|
2023-12-20 13:09:18 +08:00
|
|
|
|
UnitTreaaafasa.Init();
|
2023-12-15 18:52:23 +08:00
|
|
|
|
UnitaadfafxSubToList.Init();
|
2023-12-03 16:58:25 +08:00
|
|
|
|
UnitGridSave2.Init();
|
2023-11-27 21:00:05 +08:00
|
|
|
|
Unitdfafa11.Init();
|
2023-11-21 23:58:20 +08:00
|
|
|
|
UnitSelectN.Init();
|
2023-11-08 11:51:50 +08:00
|
|
|
|
UnitSubqueryN.Init();
|
2023-11-03 23:51:37 +08:00
|
|
|
|
Unitadfasfa.Init();
|
2023-10-30 02:43:20 +08:00
|
|
|
|
UnitOneToMany1231123.Init();
|
2023-10-26 15:25:31 +08:00
|
|
|
|
OneToManyInString.Init();
|
2023-10-16 13:22:18 +08:00
|
|
|
|
UnitSplitTask.Init();
|
2023-10-15 14:25:20 +08:00
|
|
|
|
UinitUpdateNavOneToOne.Init();
|
2023-10-08 21:36:23 +08:00
|
|
|
|
UnitCreateNavClass.Init();
|
2023-10-04 19:26:14 +08:00
|
|
|
|
UnitBulkMerge.Init();
|
2023-10-03 11:44:53 +08:00
|
|
|
|
UnitBool.Init();
|
2023-09-29 11:56:05 +08:00
|
|
|
|
UnitGridSave.Init();
|
2023-09-29 15:49:49 +08:00
|
|
|
|
UnitNavDynamic.Init();
|
2023-09-26 15:22:09 +08:00
|
|
|
|
CrossDatabase01.Init();
|
2023-09-20 21:01:49 +08:00
|
|
|
|
UnitStringToExp.Init();
|
2023-09-11 01:30:01 +08:00
|
|
|
|
UnitOneToMany2.Init();
|
2023-09-11 01:19:10 +08:00
|
|
|
|
UnitOneToMany.Init();
|
2023-09-08 15:21:31 +08:00
|
|
|
|
UnitOneToOneDel.Init();
|
2023-08-20 04:20:49 +08:00
|
|
|
|
EntityInfoTest.Init();
|
2023-08-14 22:19:28 +08:00
|
|
|
|
UnitOneToManyafdaa.Init();
|
2023-08-09 21:43:51 +08:00
|
|
|
|
Unitadfafa.Init();
|
2023-07-20 00:23:43 +08:00
|
|
|
|
AnimalTest.Init();
|
2023-07-10 17:11:51 +08:00
|
|
|
|
UnitOneToOneNAny.Init();
|
2023-07-04 15:32:44 +08:00
|
|
|
|
Unitrasdfa.Init();
|
2023-06-28 17:21:30 +08:00
|
|
|
|
Unitadfasdfa.Init();
|
2023-06-26 18:32:39 +08:00
|
|
|
|
UpdateNavOneToOne.Init();
|
2023-05-28 19:30:40 +08:00
|
|
|
|
Unitasf1.Init();
|
2023-05-05 10:56:27 +08:00
|
|
|
|
UOneManyMany7.init();
|
2023-05-04 23:33:47 +08:00
|
|
|
|
UOneManyMany6.init();
|
2023-04-25 11:44:39 +08:00
|
|
|
|
UinitCustomConvert.Init();
|
2023-04-18 17:22:06 +08:00
|
|
|
|
UnitCustom020.Init();
|
2022-12-03 22:48:45 +08:00
|
|
|
|
UnitSubToList.Init();
|
2022-09-21 18:27:00 +08:00
|
|
|
|
UJsonsdafa.Init();
|
2022-07-03 01:20:29 +08:00
|
|
|
|
UOneManyMany.init();
|
2022-07-03 17:12:52 +08:00
|
|
|
|
UOneManyMany2.init();
|
|
|
|
|
UOneManyMany3.init();
|
|
|
|
|
UOneManyMany4.init();
|
2022-07-04 08:04:59 +08:00
|
|
|
|
UOneManyMany5.init();
|
2022-06-27 22:20:36 +08:00
|
|
|
|
UNavDynamic111N.Init();
|
2022-05-07 13:42:06 +08:00
|
|
|
|
UCustom019.Init();
|
2022-04-13 23:01:54 +08:00
|
|
|
|
UCustom015.Init();
|
|
|
|
|
UCustom014.Init();
|
2022-04-10 02:34:26 +08:00
|
|
|
|
UCustom012.Init();
|
2021-12-26 02:05:48 +08:00
|
|
|
|
UCustom01.Init();
|
|
|
|
|
UCustom02.Init();
|
|
|
|
|
UCustom03.Init();
|
2021-11-21 12:28:10 +08:00
|
|
|
|
Bulk();
|
2021-01-31 18:54:56 +08:00
|
|
|
|
Filter();
|
2021-01-18 00:54:51 +08:00
|
|
|
|
Insert();
|
2021-01-31 18:54:56 +08:00
|
|
|
|
Enum();
|
|
|
|
|
Tran();
|
2020-11-15 00:39:23 +08:00
|
|
|
|
Queue();
|
2019-06-04 21:03:27 +08:00
|
|
|
|
CodeFirst();
|
2019-05-21 12:57:51 +08:00
|
|
|
|
Updateable();
|
2019-05-17 22:26:30 +08:00
|
|
|
|
Json();
|
2019-05-21 12:57:51 +08:00
|
|
|
|
Ado();
|
|
|
|
|
Queryable();
|
2021-01-18 00:54:51 +08:00
|
|
|
|
Queryable2();
|
2019-05-21 12:57:51 +08:00
|
|
|
|
QueryableAsync();
|
2020-11-15 00:39:23 +08:00
|
|
|
|
//Thread();
|
|
|
|
|
//Thread2();
|
|
|
|
|
//Thread3();
|
2019-05-17 22:26:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|