mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
cd8f282523
commit
50c29e2d5a
@ -259,6 +259,11 @@ namespace OrmTest
|
|||||||
.LeftJoin<OrderItem>((x, y) => x.yid == y.ItemId)// 最后一个表不是匿名对象就行
|
.LeftJoin<OrderItem>((x, y) => x.yid == y.ItemId)// 最后一个表不是匿名对象就行
|
||||||
.ToList();
|
.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 ####");
|
Console.WriteLine("#### Join Table End ####");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user