Catharsis is an open-source Framework Based on ASP. net mvc. It was previously seen in codeproject. InMy2011 life dashboardIt also said that this year we are going to giveOpenexpressappWith the addition of B/S support, it took a few days to read about catharsis. The following is a brief introduction.
Introduction to catharsis
Web-application framework, multi-tier (5-tier) architecture (SQL or XML is persitence, Dao as the only access point to get/store data-nhib.pdf 3.0, facades as the only business rule validation place, MVC pattern (Views on the razor only) and UI (HTML, CSS and jquery ).
ASP. net mvc 3.0 RC-razor,
The web-Application Framework gathering the best practices and design patterns.
Stronugly Oop, multi-tier architecture, nhib.pdf 3.0, XML, ADO. net
Vs 2010,. Net 4.0 (contracts, covariance, named and default parameters)
Project address: http://catarsa.com
Http://www.codeplex.com/Catharsis/
Document: http://www.codeproject.com/KB/applications/Catharsis_part3.aspx
Main Interface:
Architecture Diagram
Solution Structure
Based on the architecture diagram above, we can see the corresponding projects from a sample solution.
Generate the complete code corresponding to the object through the wizard
Combined with vs, catharsis provides a recipe to generate a project code file. when an object is generated, the corresponding code of each layer can be automatically generated.
Controller Inheritance System
The following is an inheritance system of the framework on the object controller. The framework extracts a codelist to store classes with simple lists of codes and names, this class can use smallint and tinyint as primary keys to reduce database storage space.
- Currencycontroller: currency is an example object, which is a specific object controller.
- Codelistcontroller: a built-in entity controller with code and name
- Entitycontroller: A General Controller with read/write behaviors (ADD, update, delete)
- Readcontroller: A General Controller with read behavior (query, list, details)
- Webcontroller: not only for entity, imastermodel introduced, service operations (Objectbinding ())
- Controller: controller of ASP. net mvc Framework
Limitations
- Slow running
- The interface is not very beautiful
- Ui Template Extraction is not very good
- Nothing attracts me too much
Useful
- Strong Oo, multi-layer framework
- Inheritance of object control class
- Use of ASP. NET MVC
- Multi-language support
As I have not carefully looked at it, many specific implementations will be further explored. After all, I still have a lot to learn about B/S development, so the above sharing may be biased.
Recommended:Online e-books you may need
My Sina NECK: http://t.sina.com.cn/openexpressapp
Welcome to reprint, reprint Please note: Reprinted from Zhou jingen [http://zhoujg.cnblogs.com/]