- 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.
推薦閱讀
- PS是這樣玩的:輕松掌握 Photoshop 通關秘籍
- UG NX10.0從新手到高手
- Flash CC中文版動畫設計與制作/微課堂學電腦
- Photoshop CC 2018實用教程
- After Effects CC影視后期制作實戰從入門到精通
- AutoCAD 2020中文版從入門到精通(標準版)
- Visio圖形設計從新手到高手(兼容版·第2版)
- CorelDRAW服裝設計實用教程(第四版)
- Android從入門到精通
- Premiere CC視頻編輯入門與應用
- Blender 2.5 Materials and Textures Cookbook
- AutoCAD 2022中文版建筑設計從入門到精通
- Building Websites with ExpressionEngine 1.6
- After Effects印象 影視高級特效光影篇
- Microsoft SQL Azure Enterprise Application Development