ASP. NET MVC Bootstrap rapid development Framework

Source: Internet
Author: User

Objective

Every new development project has to be designed from the start? Is there a common rapid development framework for wood? And it has to be ASP. NET MVC and Bootstrap? Do not create the database manually? Is the framework scalable for future business support? What's a simple feature that requires a day to build the infrastructure? Can you only care about the business I need?

There is a project based on the ASP, EntityFramework, Memcached, Bootstrap Rapid project development framework that creates a project with simple user management in just 3 seconds.

One-click Installation

Lazy One-click to install the package, you can add the template project to the VS Project template list by double-clicking the "Install.bat" batch process.

Fast Create

Just click on a "OK" button to create a background program with simple user management and login functionality, as shown in:

Run Effect landing screen

Admin background Main interface

User Management

Databases that are created automatically

Export your own project template

Example of exporting a project template:

Source Highlights Service Interface layer, completely reject the BLL garbage redundancy code

Service abstract base class
Public abstract class Servicecontext:idisposable {//<summary>///Database operation context///</sum        mary> public readonly Defaultdbcontext DbContext = new Defaultdbcontext (); <summary>//Cache component///</summary> public cachecontext cachecontext {get; Private set ; }///<summary>///dynamically set new instances of cached objects///</summary>//<param name= "Cachecontext" &            gt; Cache instance Object </param> public void Setcacheinstance (Cachecontext cachecontext) {//Release existing cache components first                if (cachecontext! = null) {cachecontext.dispose ();            Cachecontext = null;        }//Initializes a new instance of the cache component Cachecontext = Cachecontext;            public void Setcacheinstance (Type cachecontexttype) {if (Cachecontexttype = = null)            {throw new ArgumentNullException ("Cachecontexttype");      }      if (!typeof (Cachecontext). IsAssignableFrom (Cachecontexttype)) {throw new ArgumentException (string. Format (CultureInfo.CurrentCulture, "the type {0} must inherit from the abstract class Cachecontext", Cachecontexttype), "Cachecontexttype            ");            try {cachecontext = Activator.CreateInstance (cachecontexttype) as Cachecontext;                        } catch (Exception ex) {throw new InvalidOperationException ( String.Format (CultureInfo.CurrentCulture, "Creating an abstract class Cachecont            Ext instance {0} failed ", Cachecontexttype), ex); }} public void Dispose () {if (DbContext! = null) {DBCONTEXT.D            Ispose ();            } if (Cachecontext! = null) {cachecontext.dispose ();}        }    } 

Cache components that can be dynamically toggled during operation

Service interface layer specific business implementation

Are you neat about the new keyword? Deep hates?

All interfaces are implemented in a configurable format

No exceptions, no escaping.

Wait

Summarize

The basic framework of the project gives you a quick start, and the more NB design also needs your further imagination to play.

Source Address: Https://github.com/smartbooks/QuickBootstrap

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.