mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update unit test
This commit is contained in:
parent
670d29dc95
commit
e557b782c5
@ -15,12 +15,18 @@ namespace OrmTest
|
||||
Console.WriteLine("");
|
||||
Console.WriteLine("#### SqlQueryable Start ####");
|
||||
SqlSugarClient db = NewUnitTest.Db;
|
||||
|
||||
var list=db.Queryable<StationEntity>().ToList();
|
||||
foreach (var item in list)
|
||||
{
|
||||
item.KeyID = Guid.NewGuid() + "";
|
||||
}
|
||||
if (db.Queryable<StationEntity>().Count() < 2000)
|
||||
{
|
||||
db.Insertable(list).ExecuteCommand();
|
||||
}
|
||||
var b = DateTime.Now;
|
||||
|
||||
var xxx=db.Queryable<StationEntity>().LeftJoin<StationEntity>((x111, zzzz) => true)
|
||||
.Includes(t => t.StationConfigs)
|
||||
.ToList();
|
||||
|
||||
db.Aop.OnLogExecuting = null;
|
||||
var data1 = db.Queryable<StationEntity>()
|
||||
.Includes(t => t.StationConfigs, m => m.BaseStationConfig)
|
||||
.Where(t => t.DeleteTime == null)
|
||||
|
Loading…
Reference in New Issue
Block a user