- ASP.NET 3.5 Application Architecture and Design
- Vivek Thakur
- 293字
- 2021-05-28 17:47:10
Three Tier Model
If the project is large, with a lot of complicated business logic, then it's more useful to separate the BL and DAL into in their own assemblies so that we can change the BL code without changing the DAL assembly. This makes our application more flexible and loosely-coupled as we can use a different DAL assembly for a different database with the same BL assembly.
The solution will have:
- ASP.NET Web Project having Presentation Layer coding in ASPX and ASCX files, under namespace
MyApp.Web
(Tier 1) - A class library project having business logic code, with namespace,
MyApp.Code.Business
(Tier 2) - A class library project DAL for data access code, with namespace,
MyApp.Code.DAL
(Tier 3)
The above structures and layouts show some of the possible ways we can architect our solutions, and also illustrate the differences between layers and tiers. We can have more tiers (n-tier), and can customize our solution with a mix of tiers and layers, according to the project's needs. There is a common misconception among beginner developers that a 3-tier (or n-tier) architecture is the only best model, and many new developers try to blindly follow this model without even giving a second thought to their actual project's needs. As we go from one tier to n-tier, the code complexity increases, and it is better not to go for an n-tier architecture unless the application demands it. For small projects, we can keep things simple and easy.
In the coming chapters we will learn how, why, and which architecture to use (with sample projects), depending on the business needs.
- CorelDRAW X6圖形設(shè)計(jì)立體化教程
- Photoshop CC 2018實(shí)用教程
- AutoCAD 2017實(shí)用教程
- 剪映AI視頻剪輯:AI腳本+AI繪畫+圖文生成+數(shù)字人制作
- 圖解Word 2007圖文排版與辦公應(yīng)用
- 新編三維CAD習(xí)題集
- AutoCAD 2018中文版從入門到精通
- Photoshop CC入門與進(jìn)階
- 24小時(shí)學(xué)會(huì)PowerPoint 2010
- SPSS統(tǒng)計(jì)分析從基礎(chǔ)到實(shí)踐
- Adobe創(chuàng)意大學(xué)Photoshop產(chǎn)品專家認(rèn)證標(biāo)準(zhǔn)教材(CS6修訂版)
- AutoCAD 2022中文版建筑設(shè)計(jì)從入門到精通
- Adobe創(chuàng)意大學(xué)InDesign CS5 產(chǎn)品專家認(rèn)證標(biāo)準(zhǔn)教材
- UG NX 12.0中文版從入門到精通
- Photoshop數(shù)字圖像處理