Sql – LINQ exclusion

linqsql

Is there a direct LINQ syntax for finding the members of set A that are absent from set B? In SQL I would write this

SELECT A.* FROM A LEFT JOIN B ON A.ID = B.ID WHERE B.ID IS NULL

Best Solution

See the MSDN documentation on the Except operator.