mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +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)// 最后一个表不是匿名对象就行
|
||||
.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 ####");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user