mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 23:13:42 +08:00
Add unit test
This commit is contained in:
parent
65112fcb0b
commit
8c267542b2
@ -58,6 +58,15 @@ namespace OrmTest
|
||||
IsAny = k.map_app_revision.Any(),
|
||||
},true)
|
||||
.ToList() ;
|
||||
db.CodeFirst.InitTables<Order, Custom>();
|
||||
var exp = Expressionable.Create<Custom>().And(s => s.Id == 1);
|
||||
var list4 = db.Queryable<Order>().Take(10).Select(it => new
|
||||
{
|
||||
customName2 = SqlFunc.Subqueryable<Custom>()
|
||||
.Where(exp.ToExpression())
|
||||
.Where(exp.ToExpression())
|
||||
.Select(s => s.Name)
|
||||
}).ToList();
|
||||
//Console.WriteLine("用例跑完");
|
||||
//Console.ReadKey();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user