- 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.
推薦閱讀
- 中文版Illustrator CC實(shí)用教程
- Google Web Toolkit 2 Application Development Cookbook
- Rhino 6.0中文版入門、精通與實(shí)戰(zhàn)
- 中文版Maya 2022完全自學(xué)教程
- Premiere視頻編輯應(yīng)用教程:PremierePro 2020(微課版)
- SOA Patterns with BizTalk Server 2009
- 中文版Photoshop CS6從新手到高手(超值版)
- CINEMA 4D R20完全實(shí)戰(zhàn)技術(shù)手冊(cè)
- Unity 2020游戲開(kāi)發(fā)快速上手
- Photoshop CC完全自學(xué)教程:從入門到實(shí)踐(全新版)
- 電腦寫作與定制五筆(第2版)
- Oracle Web Services Manager
- NHibernate 3 Beginner's Guide
- Flash ActionScript 3.0互動(dòng)設(shè)計(jì)項(xiàng)目教程
- MODx Web Development