0
var query = from detail in dsApp.AsEnumerable()
join rate in dsRate.AsEnumerable()
on detail.Field<string>("ApplicationName") equals
rate.Field<string>("AppName")
into g
from h in g.DefaultIfEmpty()
orderby ...
select new { A = detail, B = (h==null? 0: h.Field<int>("num")) };
對於上面的查詢,我該如何命令B? 謝謝linq left join datatable and oder by the null value
工作,謝謝! – shuan