In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to understand the basic concepts of LINQ". In the operation of practical cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
To better understand LINQ, you first need to understand the basic concepts of LINQ. LINQ, the full name of language level Integrated query (Language INtegrated Query), includes DLinq and XLinq. The main purpose of LINQ is to reduce the complexity of accessing and integrating information data (accessing and integrating information).
The most important concepts in the LINQ foundation are two classes and two interfaces.
IEnumerable interface: it represents the collection of data that can be queried. A query usually filters the elements in the collection one by one and returns a new IEnumerable object to save the query results.
IQuerable interface: it inherits the IEumerable interface and represents a tree of expressions that can be queried.
The Enumerable class, which implements the LINQ standard query operator by providing extension methods to IEnumerable. Including filtering, navigation, sorting, query, join, summation, * * value, minimum value and other operations.
The Queryable class: it implements the LINQ standard query operator by providing extension methods to IQueryable. Including filtering, navigation, sorting, query, join, summation, * * value, minimum value and other operations.
According to the type of data source, LINQ technology can be divided into four main technology directions as described below.
LINQ to Object: the data source implements the in-memory data collection of the interface IEnumerable or IQeryable, which is also the basis of LINQ.
LINQ to ADO.NET: the data source is the ADO.NET dataset. Here, the table structure in the database is mapped to the class structure, and the dataset is obtained from the database to memory through ADO.NET, and the data is queried through LINQ.
LINQ to XML: the data source is the XML document. Here, the XML document data is loaded into memory through XElement, XAttribute and other classes, and the data is queried through LINQ.
In addition to these three common data types, .NET 3.5 also provides support for users to extend LINQ. Users can implement third-party LINQ support programs as needed, and then obtain custom data sources through LINQ.
This is the end of the content of "how to understand the basic concepts of LINQ". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.