Saturday, January 29, 2011

What Is LINQ

                                     Language Integrated Query (LINQ, pronounced "link") is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages.


                                   LINQ defines a set of method names (called standard query operators, or standard sequence operators), along with translation rules from so-called query expressions to expressions using these method names, lambda expressions and anonymous types. These can, for example, be used to project and filter data in arrays, enumerable Class,XML  (LINQ to XML), and third party data sources. Other uses, which utilize query expressions as a general framework for readably composing arbitrary computations, include the construction of event handlers or monadic parsers.


Standard Query Operators:

1.Select
2.Where
3.SelectMany
4.Sum/Max/Min
5.Join
6.GroupBy
7.OrderBy Etc...

LINQ Providers:

1. LINQ to Objects
2. LINQ to XML
3. LINQ to SQL  Etc.