Code optimization

This commit is contained in:
skx
2021-01-17 23:56:54 +08:00
parent 1e6f05c1c6
commit a0fb511e95
3 changed files with 13 additions and 15 deletions

View File

@@ -93,11 +93,11 @@ namespace OrmTest
))
.Select((o, i, c) => new { o,i}).ToList();
List<Dictionary<string, object>> ListDic = db.Queryable<Order, OrderItem, Custom>((o, i, c) => new JoinQueryInfos(
JoinType.Left, o.Id == i.OrderId,
JoinType.Left, o.CustomId == c.Id
))
.Select<ExpandoObject>().ToList().Select(it => it.ToDictionary(x => x.Key, x => x.Value)).ToList();
var mergeList= db.Queryable<Order>()
.Select(it => new { id = it.Id })
.MergeTable().Select<Order>().ToList();
Console.WriteLine("#### ReturnType End ####");
}