有人能帮我完成这个linq左外连接查询,以便右表(tempData)的第二列包含在结果集中,即使它可能为空?Linq左外连接中的多列
sortedData = From cs In mbCustomSort
Order By cs(0)
Group Join entry In tempData On cs(joinColumn) Equals entry(0) Into Group
From last In Group.DefaultIfEmpty _
Select New With {.groupField = cs(joinColumn)}
什么是mbCustomSort,customsort和tempData? –
对不起,mbcustomsort和tempData是数据表。你应该阅读cs – groobie
这是否工作:'用{.groupField = cs(joinColumn),.SecondRight = last(1)}'选择新的? –