Browse Source

Add unit test

pull/30/head
sunkaixuan 2 years ago
parent
commit
d8a384b899
  1. 9
      Src/Asp.Net/SqlServerTest/UnitTest/UnitSubToList.cs

9
Src/Asp.Net/SqlServerTest/UnitTest/UnitSubToList.cs

@ -309,6 +309,15 @@ namespace OrmTest
})
.ToList();
var test7 = db.Queryable<Order>().Select(it => new
{
CustomId = it.CustomId,
OrderId = it.Id,
OrderName = it.Name,
disCount = SqlFunc.Subqueryable<Custom>().Where(c => c.Id == it.CustomId|| c.Id == it.CustomId).ToList()
})
.ToList();
}
private static void TestGetAll(SqlSugarClient db)
{

Loading…
Cancel
Save