- ASP.NET 3.5 Application Architecture and Design
- Vivek Thakur
- 154字
- 2021-05-28 17:47:09
Single Tier—Three Layer Model
In this model, we logically break BL and DAL in different namespaces, introducing cleaner code separation.
ASP.NET Web Project that has logical separation between presentation, business logic and data access code:
- All presentation code will be under the
MyApp.Web
namespace (Layer 1). - Furthermore, the single project can have two folders:
- Business (Layer 2): for business logic code, with namespace
MyApp.Code.Business
- DAL (Layer 3): for data access code, with namespace
MyApp.Code.DAL
- Business (Layer 2): for business logic code, with namespace
Note that it is not necessary to have different folders for the logical separation of code; using different namespaces in different code files will also work fine. We can use this model for a medium-to-large web application where we know that many users won't log in simultaneously. For handling a large number of users, the application needs to be scalable, and to do this we might need to separate BL and DAL code into their own physical assemblies.
推薦閱讀
- 中文版SketchUp 2022完全實(shí)戰(zhàn)技術(shù)手冊(cè)
- 持續(xù)演進(jìn)的Cloud Native:云原生架構(gòu)下微服務(wù)最佳實(shí)踐
- AutoCAD快速自學(xué)寶典(2018中文版)
- Maya建模技術(shù)解析
- Photoshop CS6完全自學(xué)案例教程(微課版)
- YUI 2.8: Learning the Library
- AI繪畫(huà):Stable Diffusion從入門(mén)到精通
- Microsoft Silverlight 5: Building Rich Enterprise Dashboards
- 正則表達(dá)式必知必會(huì)(修訂版)
- PostgreSQL 9.0 High Performance
- 攝影師的后期必修課(調(diào)色篇)
- Cinema 4D基礎(chǔ)與實(shí)戰(zhàn)教程
- After Effects 2023實(shí)訓(xùn)教程
- Photoshop & Illustrator平面設(shè)計(jì)火星課堂
- UG NX 12.0中文版實(shí)戰(zhàn)從入門(mén)到精通