摘要: 关于分层分层是为了解决需求的变更。通常都会有业务逻辑层,用来处理它上层的逻辑。多层不可以共用同一个model.以免model的变化影响其他层代码的改动。 阅读全文
posted @ 2012-09-26 12:03 多远才是未来 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 依赖注入Dependency Injection 的改进ASP.NET MVC3 提供了更好的 DI 和 IoC支持,在下面的地方支持 DI:控制器 (registering and injecting controller factories, injecting controllers).MVC3通过Global.asaxs Application_Start()方法将controller注入到Castle中。View Code protected void Application_Start() { AreaRegistration.RegisterA... 阅读全文
posted @ 2012-09-26 11:36 多远才是未来 阅读(225) 评论(0) 推荐(0) 编辑