1. Introduction to QMVC framework functions
QMVC is a high-performance MVC framework, Q is the abbreviation of Quick, and MVC is the abbreviation of Model, Controller, and View respectively. QMVC is developed using the C# programming language and uses the Microsoft.NETframework4.5 class library, which is used for B/S structure project development. The author of the QMVC project, Master Wu Xiu, is a Chinese Buddhist believer. He once said that to live up to good luck, do good deeds, and promote the purpose of Buddhism, so this project is free and open source.
2. Directory introduction First, there are two MVC modes in the QMVC source code, one is the QMVC basic framework, and the other is the QMVCAPP framework. The code of QMVCAPP is implemented based on the QMVC basic framework. The APPS directory in the source code stores information about the QMVCAPP framework. Implement the code.
1. The root directory is the basic framework of QMVC
2. Router is the routing function of QMVC and uses HTTP request address analysis.
3. ControllerBase class is the base class for all controllers
4. The IMVCModel model calls the interface. Of course, your Model does not need to inherit this interface. If you want to call the QMVCRazorPage class in the Model, how can you obtain it from the interface.
5. The MVCRazorPageBase class is the base class for View templates
6. QMVCCore class is the core class of QMVC framework and the supporter that controls the operation of qmvc.
7. The ViewResult class is the information class used when the Controller passes the value to QMVCCore to call the Razor template. The Controller gives the information to be displayed to ViewResult, and QMVCCore loads the Razor template through ViewResult.
8. Router.IRouterProvider interface If you want to rewrite the routing function of QMVC, you can implement the Router.IRouterProvider interface.