How to make sure that LINQ query is performed on database side?

Here a post about Linq queries, which explains how the output of the query can be printed or viewed: