摘要
MVC设计模式是是当今设计各种交互式应用的事实标准,在J2EEWeb应用和.NETWeb应用中出现了一些设计方案。当前的.NETWeb应用的MVC设计方案在开发大型项目时存在结构不很清晰、可维护性和伸缩性不好等不足。本文结合.Net中的代码隐藏功能以及多层架构的设计思想提出一种方案,并将MVC中的模型层划分为业务层、实体层和数据访问层,然后给出各模块的具体设计。实际应用表明该方案在.Net环境下具有结构良好、易于维护性、易伸缩的优点。
MVC is the facto standard for designing interactive application, and there are some MVC design solutions for J2EE Web application and .NET Web application. Some defects exist in current MVC solutions for .NET Web application, such as unclear structure, bad maintainability and bad expandability. In this paper, a MVC design solution for .NET Web application is proposed based on code behind and multi-tier thought. The model is divided into business tier, entity tier and data access tier in MVC, and the detailed design for each module is given. The practical application shows this solution is well structured, easily maintainable, and flexible.
出处
《微计算机信息》
2010年第27期226-227,217,共3页
Control & Automation
关键词
.NET
MVC
代码隐藏
WEB应用
.NET
Model-View-Controller (MVC)
code behind
web application