mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Add demo
This commit is contained in:
@@ -259,6 +259,11 @@ namespace OrmTest
|
||||
.LeftJoin<OrderItem>((x, y) => x.yid == y.ItemId)// 最后一个表不是匿名对象就行
|
||||
.ToList();
|
||||
|
||||
var type = JoinType.Left;
|
||||
db.Queryable<Order, OrderItem>((o, i) => new JoinQueryInfos(
|
||||
type, o.Id == i.OrderId
|
||||
))
|
||||
.Where(o => o.Name == "jack").ToList();
|
||||
Console.WriteLine("#### Join Table End ####");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user