Open source MVC Framework Pixeldragonsmvc.net Release

Source: Internet
Author: User
Tags httpcontext client visual studio

Recently, Pixel Dragons released an MVC open source framework based on the ASP.net 2.0--pixeldragonsmvc.net (previously called simplemvc.net), and from a number of key enterprise application features, An attempt was made to enhance an existing asp.net framework. As a universally used architectural pattern, MVC effectively isolates the relationship between data and the UI, ASP. NET itself is a typical MVC implementation, but in order to get a lot of advanced features of support, it is necessary to apply themselves to complete a lot of code to be available. Pixeldragonsmvc.net provides good support in many ways:

It has its own independent configuration file, the file is organized in a m-v manner and provides a logical naming of each m and V, as well as a logical database connection that is often used in the application, effectively isolating the asp.net logic from the actual m and V relationships, and handing the actual m and V execution to the framework in a controlled reversal manner.

Based on the implementation of MVC in the Java community, the framework also supports the multiple action features that each controller can support. Although not necessary, as the scale of the application expands, the controller:action of 1:1 will make the application association more complex, and instead of generating m:n interaction with a particular business entity or a functional area of the application with multiple controller, it may be useful to controller as a " Shield ", by which he manages multiple action at the same time.

With the popularity of Ajax, the concept of view is also emerging as a cross between server side and client side, a framework that provides a lightweight shared UI feature that is simple- Both server and client can share the same piece of UI code as much as possible.

Taking into account the use of small and medium projects, the framework provides a simplified means of support for transactions, and the transaction control information obtained from the configuration system is "embedded" in HttpContext, which in turn directs nhibernate What mechanism should be enabled for specific action on the server side.

In the processing of ASP.net request, the framework is configured as a HttpHandler to Web.config, to intercept all. ashx files (configurable to other extensions), and to invoke the corresponding controller and view as needed. Many tasks can be handled directly in the background.

For the benefit of developers, the NHibernate and log4net two frameworks are used for data access and log operations in the Framework extension section.

But from the perspective of enterprise application, there are still many deficiencies in this framework.

It only supports ASP.net, not Windows Form, and all operations have an isolated environment that is limited to specific HttpContext without support for threads.

The framework itself is somewhat closed, the data access section and the transaction control part of the local use of nhibernate, up to the enterprise Library can not be customized, down can not allow project personnel to use a simple such as sqlhelper access mechanism.

Its positioning is somewhat embarrassing, if it does serve the small and medium sized applications, in the Visual Studio.NET environment, C, V mixed although is generally opposed to the method, but the actual development for progress and personnel skills constraints, more or less will appear, learning to use a new MVC framework seems a little cumbersome; In the large-scale enterprise application, this framework extensibility again appears not enough.

However, if the project has chosen nhibernate for ASP.net project development, the framework can be integrated as a good scheduling mechanism. Through its "grooming", the project pages are constantly modified and enriched, and can still be managed at the periphery of the code-configuration files, especially controller can activate multiple action as needed. In addition, relatively "large" uip, pixeldragonsmvc.net focus and concise, learning threshold is very low.



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.