Browse Source

Add unit test

pull/32/head
sunkaixuan 2 years ago
parent
commit
671c26e4a1
  1. 7
      Src/Asp.NetCore2/SqlSeverTest/UnitTest/UnitSubToList.cs

7
Src/Asp.NetCore2/SqlSeverTest/UnitTest/UnitSubToList.cs

@ -61,6 +61,13 @@ namespace OrmTest
disCount = SqlFunc.Subqueryable<Order>().Where(s => s.Id == it.Id).First<Custom>()
})
.ToList();
var test4= db.Queryable<Order>().Select(it => new
{
Id = it.Id,
disCount = SqlFunc.Subqueryable<Order>().Where(s => s.Id == it.Id).First(s => new Order() { Id=s.Id }, true)
})
.ToList();
}
private static void TestJoin4(SqlSugarClient db)
{

Loading…
Cancel
Save