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