Document directory
- Chapter 1 Introduction to LINQ
There are a few articles about LINQ in the garden, so I want to create a series. Let's take a look at how to use LINQ to Objects.
Here, the blogger is reading "LINQ to Objects Using C #4.0" written by Troy Magennis.
This series of articles provides simplified content for this book.
Chapter 1 Introduction to LINQ
What is LINQ?
Language Integrated query (directly translated as Language integration query) reads as link (zero grams, isn't it easy? ^)
As an Enhanced Function launched by Microsoft, LINQ is used to process some data. The. NET language and various data sources provide a layer of encoding abstraction between the. NET language.
One of the goals of the introduction of LINQ is to reduce Code complexity and enhance code readability. LINQ is open and scalable.
Supports LINQ from. NET3.5 and is further extended in. net4.
Covered points
- LINQ to Objects
- LINQ to XML
- LINQ to Entities (part of the Entity Framework)
- LINQ to SQL
- PLINQ
- LINQ to Datasets
Standard query operation table (. net4)
Operation Type |
Standard query operation name |
Aggregation |
Aggregate, average, Count, longcount, Max, Min, Sum |
Conversion |
Asenumerable, cast, oftype, toarray, todictionary, tolist, tolookup |
Element |
Defaultifempty, elementat, elementatordefault, first, Firstordefault, last, lastordefault, single, singleordefault |
Equality |
Sequenceequal |
Generation |
Empty, range, repeat |
Grouping |
Groupby, tolookup |
Joining |
Groupjoin, join |
Merging |
Zip |
Ordering |
Orderby, thenby, orderbydescending, thenbydescending, reverse |
Projection |
Select, selectworkflow |
Partitioning |
Skip, skipwhile, take, takewhile |
Quantifiers |
All, any, contains |
Restriction |
Distinct, where |
Set |
Concat, Except T, Intersect, Union |
Next chapter