Home > Linq > LINQ # 1 – What is Linq ? (Introduction,Importance)

LINQ # 1 – What is Linq ? (Introduction,Importance)

Hi Friends,

Still there are  a lot of people those are unaware of what LINQ can do? Or they may know the name but they don’t know why and where should we use LINQ and what is the purpose of using it.

* What is LINQ?

LINQ(Language Integrated Query) is a Microsoft programming model that is used to add the feature of formal  QUERY capability  in Microsoft .Net-based programming languages.

It offers an easy and expressive way to manipulate with the data.

* The main advantage of LINQ comes from its ability to apply the same query to an SQL database , a DataSet, an array of objects in memory and to many other types of data as well. LINQ requires the presence of specific language  extensions.

* Architecture of LINQ

The following figure shows the architecture of LINQ, which can query different data sources  using different programming languages:


1)LINQ to Objects
Refers to the use of LINQ queries to access in-memory data-structures.

For example we can Query to array,Lists,objects


It is part of the ADO.NET family of technologies. LINQ to SQL translates the Language Integrated Queries in the object model to SQL and sends them to the database for execution. When the database returns the result, LINQ to SQL translates them back to objects that we can work with. LINQ to SQL also supports stored procedures and user-defined functions in the database.

For Example We can query the database table directly by using Entity Framework.

3)LINQ to Datasets

It is used to query the data cached in Datasets. A Dataset is disconnected, consolidated data from different data sources

4)LINQ to Entities

The Entity Data Model is a conceptual data model that can be used to model the data so that applications can interact with
data as entities or objects. Through the Entity Data Model,
ADO.NET exposes the entities as objects.


Using LINQ to XML, we can query, modify, navigate, and save the changes of an XML document. It enables us to write queries to navigate and retrieve a collection of elements and attributes

We will go in depth for all the above LINQ types in next blogs.


Thank You.

Categories: Linq
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: