- ASP.NET 3.5 Application Architecture and Design
- Vivek Thakur
- 157字
- 2021-05-28 17:47:09
Two Tier Model
Here we create two projects, one normal web project for UI code, and another class library project for the BL and DAL code. This will ensure that even if we change the BL or DAL code, we don't need to recompile the web project as we have separate physical assemblies. This setup is more scalable and maintainable than all previous options. Separating code into different assemblies will involve a slight performance hit, but that is negligible considering the flexibility and maintainability benefits we get by having two tiers.
The solution will have:
- ASP.NET Web Project having GUI and presentation code (Tier 1)
- A class library project having business logic and data access coding under a single namespace,
MyApp.Code
; no separate namespaces for business logic and data access code (Tier 2)
In this case, we still have the BL and DAL code under one namespace, but we can logically separate them further, as shown below.
推薦閱讀
- Learning SQL Server 2008 Reporting Services
- CorelDRAW X6圖形設計立體化教程
- IBM Lotus Notes 8.5 User Guide
- 中文版After Effects 2021入門教程
- Moldflow 2010完全自學與速查手冊(模流分析·成本控制)
- BPEL Cookbook: Best Practices for SOA/based integration and composite applications development
- Creo 4.0從入門到精通
- Maya 2020基礎教材
- SOA Patterns with BizTalk Server 2009
- Photoshop CS6完美創意設計:不一樣的圖像藝術處理
- Building Websites with ExpressionEngine 1.6
- Linux Shell Scripting Cookbook
- iPad Procreate風格繪畫之美
- Magento 1.3 Theme Design
- Java EE 5 Development with NetBeans 6