mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add unit test
This commit is contained in:
parent
06fb5c2cd5
commit
9719a1fa99
@ -1,6 +1,7 @@
|
|||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq.Expressions;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
@ -35,6 +36,14 @@ namespace OrmTest
|
|||||||
var result = db
|
var result = db
|
||||||
.UpdateNav<RosterCollection>(roster)
|
.UpdateNav<RosterCollection>(roster)
|
||||||
.Include(c => c.BasicInfo).ExecuteCommand();//用例代码
|
.Include(c => c.BasicInfo).ExecuteCommand();//用例代码
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
db.Queryable<RosterCollection>()
|
||||||
|
.Where(x => x.BasicInfo.BasicInfoId == 1)
|
||||||
|
.WhereIF(true,z => z.BasicInfo.BasicInfoId == 1)
|
||||||
|
.Where( z => z.BasicInfo.BasicInfoId == 1)
|
||||||
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
//用例实体
|
//用例实体
|
||||||
|
Loading…
Reference in New Issue
Block a user