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