Monorail MVC practice application (finished)

Source: Internet
Author: User
Start

The concept of MVC is hot, and the MVC Framework of MS is also a hot topic. In my opinion, MVC should be related to winform programming and be completed through the event mechanism, especially the use of the observer mode. Later, I checked and found that JavaCommunityIt has been used for a long time. Because of nvelocity, I am exposed to monorail. Originally, we wanted to solve the templatification Problem of the application system. The result was indeed a monorail. After research, I found that it still has practical significance and wrote the following content. I didn't write any theoretical analysis about monorail.ArticleThe final reference is found). It is more about the use of monorail from the perspective of practical applications.

Practice

Monorail MVC application-VM/html page
Monorail MVC application-build multi-layer application
Monorail MVC application-title on the dashboard page
Monorail MVC application-content area of the dashboard page
Monorail MVC application-formhelper & htmlhelper
Monorail MVC application-Use of HTML controls
Monorail MVC application-CRUD operation
Monorail MVC application-custom VM Functions
Monorail MVC application-Use of the webcontrol Control
Monorail MVC application-Error Handling Mechanism
Monorail MVC application-how to use Paging
Monorail MVC application-dataset usage
Monorail MVC application-debugging

Postscript

The purpose of studying monorail is to solve the following two problems:

    • The dll size of the web Project. Even if we try to use webcontrol as much as possible, this problem still exists in actual development. It is difficult to maintain the upload because the Web DLL is large. For MVC, the web layer only has htmlCode.
    • Coordination between front-end and back-end personnel. From the current perspective, ASP is a dynamic language, and the combination of the front and back sections is definitely better than the current method. ButProgramDeveloper, I don't want to go back to ASP. Does MVC balance the improvement between the two? At least I think the V of MVC should be HTML.

For the above two points, the implementation of mvc in the. net static language still cannot change the reality that requires compilation. That is to say, once the C in MVC needs to be changed, or new functions and features are provided. DLL is still required. We can only say that the MVC method can improve our structure, but there is no way to solve some problems at all.

Download demo

Refer:
Monorail official Doc
Monorail of firstyi

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.