Preface
Every time a new development project is designed from scratch? Do you have a general rapid development framework? And ASP. net mvc And Bootstrap? Do not create databases manually? Is the framework highly scalable for future business support? Does it take one day to build the basic environment for such a simple function? Can I only care about the business I need?
There is a fast Project Development Framework Based on ASP. net mvc, EntityFramework, Memcached, and Bootstrap. It takes only 3 seconds to create a project with simple user management.
One-click Installation
Lazy one-click installation package: http://yunpan.cn/QhxHBErJ7IIW7 access password ed81; double-click "install. bat" batch, you can add the template project to the VS Project template list.
Quick Creation
You can click a "OK" button to create a background program with simple user management and login functions, as shown in:
Running Effect logon Interface
Management Background Main Interface
User Management
Automatically created database
Export your own project template
Example of exporting a project template:
Source code highlights service interface layer, thoroughly rejecting BLL's spam redundant code
Service abstraction base class
Public abstract class ServiceContext: IDisposable {// <summary> // database operation context /// </summary> public readonly DefaultDbContext DbContext = new DefaultDbContext (); /// <summary> /// cache component /// </summary> public CacheContext {get; private set ;} /// <summary> /// dynamically set a new instance of the cache object /// </summary> /// <param name = "cacheContext"> cache Instance Object </param> public void SetCacheInstance (CacheContext cacheConte Xt) {// release the existing cache component if (CacheContext! = Null) {CacheContext. dispose (); CacheContext = null;} // initialize the cache component's new instance 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, "This 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, "Create an abstract class Cach EContext instance {0} failed ", cacheContextType), ex) ;}} public void Dispose () {if (DbContext! = Null) {DbContext. Dispose ();} if (CacheContext! = Null) {CacheContext. Dispose ();}}}
Cache components that can be dynamically switched during running
Service implementation at the Service Interface Layer
Is there any cleanliness for the new Keyword? What do you mean?
Configuration of all interfaces
Escape from any exceptions
Waiting for Rabbit
Summary
The basic framework of the project provides you with a quick start. Even more, the design of NB requires further imagination.
Source Code address: https://github.com/smartbooks/QuickBootstrap
In-depth communication? We entered the group for 229853793 exchanges.