Skip to content

A universal ASP.NET MVC architecture solution. Live demo:

Notifications You must be signed in to change notification settings

zyj0021/mvcsolution

 
 

Repository files navigation

如果遇到问题,可以进QQ群:539301714。群里的高手还有我会尽量尽快帮你解决问题。

About this repository

This repository is aimed to share our ASP.NET MVC architecture, which defines many of the coding standards to achieve clean code. We have enjoyed a lot of benifits from it:

  • few methods exceed 50 lines of code;
  • few code comments are written, as naming describes the methods themselves;
  • few file exceed 300 lines of code;
  • every line of code has its right place, one can quickly finish a new feature like configuration.

This repository is a universal ASP.NET MVC architecture solution, including data access, role based authorization, mvc application lifetime, ajax, css, mvc routing, exception handling, Ioc, logging.

We have been coding all our .NET projects based on this architecture since 2010. And we are keeping upgrading this architecture all the time to make it better and better.

To make it more applicable to most projects and easier to understand, I have been trying to write the minimum code to describe the core value of this architecture. So you can find out it is very light weight.

I also published this architecture online at http://mvcsolution.985rencai.com so that you can get a first look in a few minutes how it looks like. (Everyone can register as an admin by free and look into the admin control panel)

Finally, please remember that this architecture is only a guide for you to architect your projects, and probably you need to customize it a little for your projects. I don't recommend you just copy the code and take it in use. Instead, I strongly recommend you read the documentation carefully, which is not only a simple doc but also a serials of architecture thinkings and considerations.

Development Environments & References

  • IDE: VS2015
  • NET Version: 4.5
  • MVC Version: 5.2
  • ORM: Entity Framework 6.1
  • Json Serialization: Newtonsoft 8.0.1
  • Unit Tests: NUnit 2.5.10

Projects References

First, take a look at the projects and their reference relationships.

references

Documentation Index

  • Compile
  • Initialize Database
  • Run the Web Application
  • Publish
  • Conclusion
  • Projects References
  • Application Start
  • MVC Areas & Routes
  • AppContext & SettingsContext
  • Exception Handling
  • Error Logging
  • IOC
  • Manage External DLLs
  • Database & Tables Definition
  • Access to Database CRUD
  • Data Migration
  • Login
  • Logout
  • Session
  • Cookies
  • Install Grunt
  • Grunt Config & JS File Structore
  • Unit Tests
  • Grid

License

MIT. Feel free to use and ask questions. I'm open to any discussion.

About

A universal ASP.NET MVC architecture solution. Live demo:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.2%
  • C# 4.8%
  • CSS 3.6%
  • HTML 2.4%