There are no 2 queries but only one. The
Where
method does not actually make a query but prepares one and the call to Any
makes the real db-query. Any way I prefer the @Jitendra Pancholi solution, which makes @Maarten two statements in one with the ??
operator.