LINQ (Language-Integrated Query) is very powerful query language introduced with .Net 3.5 & Visual Studio 2008. We can use LINQ with C# or Visual Basic to query different data sources like SQL, MY SQL, Oracle etc.
What is LINQ?
LINQ stands for Language Integrated Query. LINQ offers easy data access from databases, in-memory objects, XML document and many other data sources.
In this tutorial you will learn how to work with LINQ step by steo using C#, we explain all frequently used LINQ queries with example.
You must have some basic knowledge of C# and Visual Basic in .NET before learning LINQ
We have designed this tutorial for beginners and professionals who want to learn and implement LINQ step-by-step in .Net project. If you have basic understanding of writing SQL queries, that will be added advantage, though not necessary.
Why to use LINQ?
While developing any application as a developer we have always encountered problems in querying data in easy way, we had to learn multiple of technologies like SQL, Web Services just to make a single data call.
Now with the help of LINQ we can directly work with data without depending on any other technologies, and also easily can be integrated with all previous technologies.Namespace required for using LINQ
using System.Linq; using System.Data.Linq;
Now let's learn LINQ Operators