Express query with multiple OR and filter on joined table with Entity Framework Core
问题 Here is my model class Parent { int Id; string Name; List<Child> Childs; } // name is unique class Child { int Id; int ParentId; string Name; Parent Parent; } // couple (id, name) is unique With a given list of couples (parent name, child name) I'd like to get the couples (parent, child) where child can be null if the parent with the given name exists but not the child. The SQL query would look like this: SELECT * FROM parents p LEFT JOIN childs c ON c.parent_id = p.id WHERE p.name = 'parent1