AScript定制left/right join查询语法
left join
标准LINQ查询的左连接写法如下:
1 from p in context.Persons
2 join a in context.AddressInfos on p.Id equals a.UserId into aa
3 from a in aa.DefaultIfEmpty()
4 select new { p.Id, p.Name, p.Age, MyAddress a.Address };
简化后的left join…
2026/6/23 11:48:04