摘要: 今天主要想说一个MVC+LinqTOSql的系统架构中哪些东西可以,也应该进行抽象.MVC的WEB层应该进行抽象的是:统一的Controller,将其它controller公有的属性和方法进行一个抽象,方便以后扩展和维护.代码可能是这样: /// <summary> /// Controller基类 /// </summary> public abstract class ControllerBase : Controller { /// <summary> /// 通用信息(一般由service层返回的) /// </summary> prot 阅读全文
posted @ 2012-01-08 23:49 张占岭 阅读(998) 评论(0) 推荐(0) 编辑