I'm not optimistic about LINQ.

Source: Internet
Author: User

The leader said, "This year's LINQ is a hot topic. You can check it out ". The IT industry has a lot of confusions. After reading this, I am not optimistic about LINQ.

Language Integrated Query is a language integrated query technology that Microsoft will introduce in C #3.0. It can contain LINQ-to-SQL, LINQ-to-object, and LINQ-to-XML. Among them, using LINQ-to-SQL as Microsoft's ORM is the most striking. In my opinion, although LINQ-to-object and LINQ-to-XML are good, they have a narrow application scope. Moreover, if you want to use LINQ-to-object three times in an enterprise-level project, it means that the data stream of the system is not properly processed. The following LINQ statements refer to the intention of using the database persistence technology as the LINQ-to-SQL statement.

I. There is no essential difference between LINQ and Castle. activerecord (nhibcord). The codegenerate function is mostly implemented, but the generated objects are too rigid and lack the inheritance of objects. Castle. activerecord evolved from hibernate, making it easier to understand and accept.

2. The Lambda Syntax of LINQ is too obscure,CodePoor readability, not easy to test. The concept of object-oriented is proposed to better solve the problem, rather than complicate the problem. In order to escape SQL, people have produced hql again, and now a lambda is coming.

3. LINQ does not support databases other than Microsoft. Although dblinq is available, Oracle is not supported until now (the version released in October 8), and code must be rewritten if it is supported.

4. There is still no improvement in the processing of highly practical dynamic queries by LINQ. For more information, see Google's "LINQ dynamic" or "LINQ dynamic query"

In summary, I am not optimistic about LINQ.

-------------------------------------------------

For comments with several replies, add the second paragraph of this article at noon on January 1, October 31, and modify the originalArticleLamda is lambda.

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.