Significance of LINQ

Source: Internet
Author: User

Many times I want to simplify things and hope that others can understand the things, but in fact I have to accept the fact that, injecting complicated things into simple thinking objects may not achieve the expected results. The complexity of complex things must be accepted by others.

This articleArticleIt is hoped that all the comrades who have not yet understood the significance of LINQ will review and deepen their position in the development history of. net.

. Net is not a language-independent thing. If you say yes, it may make sense, but in essence. net introduced from the C # language and built a set of common types based on the com features abstracted by Microsoft for many years. Its prototype includes a runtime and a set of compilers, after theoretical practice and exploration, VB is derived from VB.net, which turns J # Into a Microsoft toy and F # Into a bait. In recent years, various scripting languages have been extended and can be compiled into. Net intermediate codes. What is LINQ? It is a language subset composed of a set of syntax and keywords. The original intention of LINQ isLanguage-integrated query is also a language-based query, which is different from a string definition. What is the difference? Because writing it requires detection by the compiler. It has static features. PairProgramWhat makes the most sense is that it is a set query paradigm agreed on in language, which is clear and clear. At the same time, it will be supported and integrated to the greatest extent by IDE.

. NET is inseparable from ide. If you can use NotePad to write ABC. js or CBA. vbs, there may be no problem. However, it is hard to imagine that a. Net project will be successfully written without the IDE. Even if some programmers have a very good memory and have a good typing ability, it is difficult to use the command line breakpoint to debug fragments of a large program. Even if such a superman exists, it also takes half a day, a junior programmer will save half or even more time to drink coffee and eat snacks. The charm of Language lies in its most close relationship with IDE. IDE's support for many aspects of LINQ is the biggest difference between LINQ and other query paradigm variants. If Hibernate is not integrated into eclipse, I don't know how many programmers will remember it. A huge framework with a complex set of configurations and no tools, the cool people who learn to read the manual will immediately become heroes of the masses. At this time, only a few people are working mechanically, project production efficiency is low.

From. Net 3.5 (vs2008), LINQ has become part of the public language, which is beyond doubt. So far, a friend is still reading the. net1.1 app, and the vs2003 icon is still on the desktop. the Start menu is still a classic style of XP. They are satisfied with the current situation for the time being, but I think they need to understand the significance of LINQ and Its milestone role. From the moment it was born. net is not alone. It has a powerful competitor. Over the past few years, they have evolved at a slower speed than the calf that is claimed to have stepped on the shoulders of giants ,. net's strategy is to consolidate competitors, penetrate into all walks of life, terminal hosts, and finally to the scientific field. The language system added to. Net does not simply propose a standard, but directly initiates an attack on the product logo. If you have learned this label, it will be printed on you.

The lethality of LINQ is related to the number of people who master it. Many people disagree. Many people yell at M $ while using Asp.net. on that day of net, they may turn to IBM again, or sun again. Isn't it oracle? I respect the value of. net, because I respect the contributions made by many programmers, because I respect myself to writeCode. Adults will have many toys before they become adults. After they become adults, they can keep these toys and recall their childhood.

In the previous article, I said that LINQ to SQL would be discarded. Next, let's take a look at the position of linq2sql in the overall LINQ system:

1. LINQ to objects: This is the foundation of LINQ. It acts directly on objects.

2. LINQ to XML: This is the contribution of LINQ to XML queries. The most intuitive XML document model is XPath and XQuery queries. When the emergence of LINQ, queries based on XML complex sub-objects may change.

3.LINQ to ADO. net

3.1 LINQ to dataset This is a supplement to the old ado.net query result set model.

3.2LINQ to SQLIt will be gradually replaced by 3.3

3.3 to entities the entity model of the database type, and the LINQ query above this.

To be honest, the author simply flipped through several pages of technical materials and has no chance to go further. However, intuition tells me that it will operate the data in the database in a very simple way. Although it will be discarded, its attempt provides a very valuable reference for subsequent language extensions. Who knows whether it will be abandoned by those who actually mine it? 

 

 

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.