mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Add unit test
This commit is contained in:
parent
2f3a07e0fb
commit
fe496f65ea
@ -27,7 +27,11 @@ namespace OrmTest
|
||||
|
||||
//用例代码
|
||||
var result = db.Queryable<CustomerModel>().Where(customer => customer.CustomerLevelId == SqlFunc.Subqueryable<CustomertypelevelNewModel>().Where(n => SqlFunc.Between(n.CustomerTypeNewId, 1, 2)).GroupBy(n => n.CustomerLevelId).Select(n => n.CustomerLevelId)).ToList();
|
||||
|
||||
var result2 = db.Queryable<CustomerModel>()
|
||||
.Where(customer => customer.CustomerLevelId ==
|
||||
SqlFunc.Subqueryable<CustomertypelevelNewModel>()
|
||||
.Where(n => n.RoamCusTypeNewId == 1)
|
||||
.GroupBy(n => n.CustomerLevelId).Select(n => n.CustomerLevelId)).ToList();
|
||||
}
|
||||
|
||||
public class CustomerReq
|
||||
|
Loading…
Reference in New Issue
Block a user