Hello Neagoe,
Unfortunately, this LINQ scenario with
DefaultIfEmpty() is not fully supported yet by
OpenAccess. We are working towards improving our LINQ support and this scenario will be one of the first things that we will address. A workaround would be to retrieve the matching joined records in one query and invoke a second query to retrieve the hanging records from the left outer join. Let's consider the following example - we have
Orders served by
Employees and not every employee has served an order. To get those employees we may first find the rest of the employees who have participated in an order and exclude them from the overall set of the employees:
We do hope you will find the provided information useful. We will be working on making your example running without extra queries. Should you have further questions, feel free to contact us.
Best wishes,
Petko_I
the Telerik team