Linq中join的问题
var query3 = from pct in PCT_name_IDjoin pt in PT_PCTID_PTID on pct.Value equals pt.Value
select pct.Key + "," + pt.Key;
如果pct.Value是个List<string>,请问如何写这个join语句?pt.Value是个string.谢谢~~ --------------------编程问答-------------------- var query3 = from pct in PCT_name_ID
join pt in PT_PCTID_PTID on pct.Value equals new List<string>{stpt.Value}
select pct.Key + "," + pt.Key;
保持两边类型一致 --------------------编程问答--------------------
var query3 = from pct in PCT_name_ID
join pt in PT_PCTID_PTID on pct.Value equals new List<string>(){pt.Value}
select pct.Key + "," + pt.Key;
补充:.NET技术 , C#