- LINQ is stands for Language Integrated Query.
- LINQ is a Microsoft .NET Framework component and use for data querying.
- LINQ was released in Microsoft .NET Framework 3.5 on November 19, 2007.
- LINQ also defines a set of method names that is called standard query operators.
- LINQ a library for collection and iterator manipulation that makes extensive use of higher-order functions as arguments using System.Linq.
- LINQ allows us to write queries directly in our database and these queries can be on relational databases, XML documents, objects, arrays and third-party data sources.
- LINQ also defines a new LINQ provider model that can take an expression tree and use it to run native queries against a data source outside of the CLR i.e. LINQ to SQL, LINQ to XML etc.
- LINQ is query syntax, not a language or an O/RM. You can build an O/RM on top of the syntax provided by LINQ.
- LINQ is kinds of universal query language.
We can use LINQ queries in two ways,
1. Query Syntax
2. Methods Syntax
Most of the times we are using a combination of both.
LINQ makes our code cleaner, readable, reusable, maintainable and IntelliSense Support.