摘要
领域设计作为一种新的Web软件设计思想,相对之前基于数据库驱动的开发方法,更强调了领域的概念,且架构清晰,对象职责分明,可复用性好。针对企业级Web平台中业务逻辑复杂多变、领域模型模糊等问题,以一个网上书店的领域模型为案例,提出了一种基于领域驱动设计构建Web平台的设计方案。通过对案例中领域模型的分析和设计,运用分层架构和.NET提供的实体框架,阐述了平台中层超类、接口、仓储框架、仓储工厂、仓储基类和工作单元的设计过程,为网上书店的构建及其他复杂业务逻辑的Web平台的设计提供一种通用性的软件开发框架。
Compared with database-driven development, domain-driven design, as a new Web software approach, emphasizes the concept of the field. At the same time, the approach has clear structure and good reusability. Aiming at the problem that complex business logic', layer of the enterprise platform and fuzzy domain model design, the Web platform design approach based on domain-driven is proposed. In this paper, layered architecture and entity framework are utilized to design domain model of the online bookstore. Then, the design process of layer supertype, interface, repository framework, repository factory, repository base class and UnitOfWork is described. The result shows that the proposed approach provides a common software development framework for Web platform design of online bookstore and other complex business logic layer.
出处
《实验室研究与探索》
CAS
北大核心
2013年第8期72-75,101,共5页
Research and Exploration In Laboratory
基金
2009年广东省自然科学基金项目(9151027501000039)
2012年湛江市第六批非资助科技攻关计划项目(2012C3106036)