LINQ仅直接支持等联接。如果要进行任何其他类型的联接,则基本上需要交叉联接和
where:
from a in tableafrom b in tablebwhere a.col1 == b.col1 || a.col2 == b.col2select ...
可能值得检查生成的SQL的外观和查询计划的外观。可能有更有效的方法,但这可能是 最简单的 方法。

LINQ仅直接支持等联接。如果要进行任何其他类型的联接,则基本上需要交叉联接和
where:
from a in tableafrom b in tablebwhere a.col1 == b.col1 || a.col2 == b.col2select ...
可能值得检查生成的SQL的外观和查询计划的外观。可能有更有效的方法,但这可能是 最简单的 方法。