mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Add unit test
This commit is contained in:
parent
c0e3810c56
commit
41e432ee38
@ -18,8 +18,7 @@ namespace OrmTest
|
||||
{
|
||||
OnLogExecuting = (sql, p) =>
|
||||
{
|
||||
Console.WriteLine(sql);
|
||||
Console.WriteLine(string.Join(",", p?.Select(it => it.ParameterName + ":" + it.Value)));
|
||||
Console.WriteLine(UtilMethods.GetNativeSql(sql,p));
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -31,6 +30,7 @@ namespace OrmTest
|
||||
}
|
||||
public static void Init()
|
||||
{
|
||||
UnitBool.Init();
|
||||
UnitGridSave.Init();
|
||||
UnitNavDynamic.Init();
|
||||
CrossDatabase01.Init();
|
||||
|
20
Src/Asp.NetCore2/SqlSeverTest/UnitTest/UnitBool.cs
Normal file
20
Src/Asp.NetCore2/SqlSeverTest/UnitTest/UnitBool.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
internal class UnitBool
|
||||
{
|
||||
public static void Init()
|
||||
{
|
||||
var db = NewUnitTest.Db;
|
||||
var xx=db.Queryable<Order>()
|
||||
.Select(it => new
|
||||
{ id=it.Id,
|
||||
x=it.Id==1
|
||||
}).ToList();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user