Applications of LINQ in development

Source: Internet
Author: User
It is quite convenient after the emergence of LINQ. I hate being bloated. Code. Using LINQ enables ProgramIs more standardized and clearer. However, the data operation method provided by LINQ is too simple and needs to be extended based on your own needs. You can either use the extension method (not tried yet) or write it into a separate class, you can use objectdatasource to call the data control, but the method is more flexible. In fact, the data operations cannot be those. The methods provided by LINQ are slightly different. They can all be used and use linqdatasource. before performing the operations, make some simple modifications to the data. It is also easy to use, that is, it looks more troublesome.
In front-end development of the website, you can call tags directly or write the methods in advance (for some simple outputs, if you want to use Ajax or write this function block as a user control ), you can directly use <% =%> or <% method () %> to update website data from time to time. To simplify the front-end page, you only need to call some static methods to display the website. Another point is whether to use the control when using the data list. I feel that the control is quite good and AJAX can be used to achieve the effect. I feel that the static file mode is not reflected at all. The advantages of Asp.net are implemented in ASP mode. For better search engine indexing, the pseudo-static method can be used. Make full use of the database cache to speed up website browsing. It is better to use dynamic data. For some simple websites, you can use the static generation method. Just a few pages. Use a static method. In a static template, write a tag and use a regular expression to analyze the method or variable you want to drop. Use the background to directly write data to a file to generate a static file. Generating static pages is a waste of space in the case of a large amount of data. It depends on the actual situation.

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.