mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Code optimization
This commit is contained in:
@@ -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 ####");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user