IoC模式能够帮助开发者将来自不同项目的组件组装成为一个内聚的应用程序,使用Autofac来管理组件之间的关系可以“扁平化”错综复杂的类依赖,具有很好的适应性和便捷度。本文在研究IoC模式的基础上,将Autofac和ASP.Net MVC结合构建一个松耦合的系统。%IoC pattern can help developers to assemble components from different projects into a cohesive application system. Autofac is used to manage the relationship between components. It can flat complex dependences of classes and it has good adapt-ability and convenience degree. Based on the research of IoC pattern, this paper combines Autofac and ASP.Net MVC to build a loosely coupled software application system.
展开▼