Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これを試しました:
myStructs = from MyObject s in MyObjects join c in Categories on s.CategoryID equals c.Item1 && s.Stars equals c.Item2 select s;
しかし、私は参加時に2つの条件を書くことができないようですか?私はどこが間違っていますか?SQLではこれも実行できます...
複数の条件/フィールドに参加するには、匿名タイプが必要です。
myStructs = from s in MyObjects join c in Categories on new { s.CategoryID, s.Stars } equals new { CategoryID = c.Item1, Stars = c.Item2 } select s;