Add unit test

This commit is contained in:
sunkaixuan 2022-05-11 11:45:21 +08:00
parent 2f3a07e0fb
commit fe496f65ea

View File

@ -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