- 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.
推薦閱讀
- Photoshop 2022從入門到精通
- AutoCAD 2020中文版從入門到精通(標(biāo)準(zhǔn)版)
- 中文版CorelDRAW X7基礎(chǔ)培訓(xùn)教程(移動(dòng)學(xué)習(xí)版)
- Hadoop核心技術(shù)
- 中文版SolidWorks 2015技術(shù)大全
- ERP沙盤模擬簡(jiǎn)明教程
- Oracle VM Manager 2.1.2
- Photoshop CC入門與進(jìn)階
- AutoCAD 2014實(shí)用教程(第4版)
- 中文版Photoshop CC平面設(shè)計(jì)從入門到精通(唯美)
- 正則表達(dá)式必知必會(huì)(修訂版)
- 學(xué)摳圖:Photoshop專業(yè)摳圖技法案例教程
- Instant Markdown
- Inkscape Starter (Microcontent)
- 中文版Photoshop CC 2018基礎(chǔ)培訓(xùn)教程(全彩版)