Application Framework Combat 27: MVC+EASYUI+EF+AUTOFAC-based CRUD demo free release, pure dry goods, with screenshots

Source: Internet
Author: User

Unconsciously, this series has already written dozens of articles. I was going to give the basic introduction after the release of the demo for the overall description, but most people prefer to see the touch of the performance layer, not too interested in the back end, so I decided to send a simple crud demo out, let us first feel, the application framework encapsulated after the code is generally what it looks like.

Using Easyui as the front-end framework, mainly it is more powerful than DWZ, but also based on HTML extension, more than the more powerful ext to be much simpler, more importantly, it is more and more popular, for more detailed choice or front-end architecture design, I will be in the subsequent article description.

Although it is a simple single-table crud operation, the layered architecture and various aspects of the package are already in place, and you can easily download the demo is essentially different. Of course, I did not add some important framework features, such as log tracking, global exception capture, permission control, and so on, to be updated when I explain the content.

With respect to copyrights, any source code issued in this series is free of charge and can be used for commercial purposes. Because this series of blog update progress is slower than the source of the issue, so in this series of articles do not post the relevant code, do not allow you to paste the code into your blog, the other reprint please indicate the source.

If the article in this series goes beyond the scope of the issued source code, I will issue a new version, please note.

Also, if you find the bug inside the code, please let me know and I will fix it ASAP.

First, several vs solutions. The demo is divided into two solutions, one is the application framework project Util, and the other is the project solution applications.managements.

Here's how the demo works.

Let's look at some of the MVC View Code.

As you can see, Easyui has been encapsulated in the HTML extension, the API design is mainly reference to ext.net, as to why the front-end framework needs to be encapsulated, and how to encapsulate, I will explain in detail in subsequent articles.

On the other hand, you will find that the code is almost invisible JS, all Easyui related JS has been completely extracted, and the use of the Convention is better than the principle of configuration, if you follow the framework of the pattern, you do not need to do any configuration and JS operation, you can complete the basic functions.

For ease of use, the right-click menu has been added to the table, of course, for illustrative purposes, which is not very useful for general modules.

The following is a look at the controller and Application layer service code.

From the above can be seen, for the simple crud operation, basically no matter you, the base class to help you do most of the work has been done, when with the code generator, you can spend most of the time to make business logic, rather than these mechanical work.

The following is the encapsulated Easyui JS code.

Finally, put a few more frame codes.

To get you up and running, I've also provided a database backup based on SQL Server 2005, roughly 10000 rows of randomly generated data in the data directory.

The source code is free, but will not easily let you download to, to take the source code, you only need to do two things, a little recommendation , two in the comments to leave your Email, I do so is to add a little popularity, no one to see, I write the text is not much passion.

Of course, I can not at any time 24 hours for your service, I issued a source code for 1 days each time, more than 1 days please wait for the next time, this time until January 22, 2015 noon 12 o'clock, more than no longer issued.

Many of the code has not been mentioned, such as the IOC and so on, to see for themselves first, I will follow the article on the development of key points and details of the framework design details.

I will not regularly release the latest source code, please pay attention.

. NET Application Framework Exchange QQ Group: 386092459, welcome interested friends to join the discussion.

Thank you for your continued attention, my blog address: http://www.cnblogs.com/xiadao521/

Application Framework Combat 27: MVC+EASYUI+EF+AUTOFAC-based CRUD demo free distribution, pure dry goods, attached

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.