Category Archives: Linq

delegates, anonymous methods & lamda expressions

In this article, we will discuss about the basic concept of the delegates, anonymous methods and lamda expressions. We will use one single code example of a add method, which takes two input parameters and return their sum. So we have a simple … Continue reading

Posted in C#, Linq | Tagged | Leave a comment

Compiled Query in LINQ

While using entity framework, it is very common to write a method and call it multiple times from different modules/sections of the applications. For ex: in a application, we may be fetching the list of States/Cities etc. So when we … Continue reading

Posted in Linq | Tagged | Leave a comment

linq join using lamda expressions

So now back to LINQ and this time we will be discussing about joins using LINQ. But the interesting point in this will be the use of lamda expressions and not the normal linq query. Of-course, we have the concept of … Continue reading

Posted in C#, Linq | Tagged | Leave a comment

IEnumerable vs IQueryable

While fetching the results from the datatbase, we normally use IEnumerable or IQueryable etc as the return types. and use them interchangeably, without knowing the affect of the use of the one or the other. There is one major difference … Continue reading

Posted in C#, Linq | Tagged | Leave a comment

Deferred query vs Immediate query execution in LINQ

Recently i added an article related to lady/eager loading in LINQ. This concept is quite important in terms of the performance of the database. During this, i also got a chance to explore the concept of the Deferred and Immediate query execution. … Continue reading

Posted in Linq | Tagged | Leave a comment