Recently I had started exploring the new features of "LINQ to Entities". So I decided to start a series of articles on "LINQ" and accumulate it on my blog for beginners.
I hope this series will be helpful to you to understand the "LINQ". Before jumping in to start the application development let's talk about the basics, something like what LINQ is and what are its benefits.
What is LINQ?
In short, Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language (also in Visual Basic and potentially any other .NET language).
LINQ is a technique used to retrieve data from any object that implements the IEnumerable<T> interface. In LINQ, arrays, collections, relational data, and XML are all potential data sources and we can query over it to get only those data that meets our criteria and all is done using C# and VB. In Microsoft's PDC (Professional Developers Conference) 2005, Anders Hejlsberg and his team presented the LINQ approach and its components released with the .NET 3.5 Framework.
Benefits of LINQ
Some of the major benefits of LINQ are:
- LINQ is integrated into the C# and VB languages and it provides syntax highlighting and IntelliSense features and even you can debug your queries using the integrated debugger in Visual Studio.
- Using LINQ it is possible to write code much faster than older queries and lets you save half of the time spent writing queries.
- Using LINQ you can easily see the relationships among tables and it helps you compose your query that joins multiple tables.
- Transformational features of LINQ make it easy to convert data of one type into a second type. For example, you can easily transform SQL data into XML data using LINQ.

Abhimanyu K VatsaPosted Sep 4, 2012, 12:10 AM
@Sam: you all know, and I know it. "EF depends on LINQ for filtering", i'm not agree because EF and LINQ are two different trees but yes they work together like charm.
Sam HobbseditedPosted Sep 3, 2012, 2:55 PMEdited Sep 3, 2012, 3:43 PM
What would the equivalent be using LINQ? In part 2 your LINQ to SQL sample uses Entity Framework, correct? If we use Entity Framework without LINQ then the code here would be smaller, correct? I am not experienced with the EF; as best as I understand, EF depends on LINQ for filtering. I think however that the EF code equivalent to the preceding code, except without the filter, would be something like: using (EmployeeEntities ee = new EmployeeEntities()) { foreach (Employee e in ee.Employees) string name = e.name; }