Getting Started with LINQ – Part 3

Hi Friends,

In this section, we are going to delve further. We’ll first start with filtering process. Below is the snippet for the simple filtering process.

This will produce the following result.


Now, let us look at complex style of filtering with multiple where clauses.


Now, let us see the scenario where in we want to skip every 2nd item like shown below.

This will produce the below output.


Let us now query against database. Here, i am reviewing against my movie review database. Here, i am referring Movies table as shown below.


Now, let us consider a scenario where you want to query what IN and NOT-IN scenario as shown below.


Thanks for joining me. We’ll continue same thing in another session. Till then stay tuned and happy coding.

Rahul Sahay
Happy Coding