Reading Notes-LINQ to Objects Using C #4.0 (1)

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.