- ASP.NET 3.5 Application Architecture and Design
- Vivek Thakur
- 280字
- 2021-05-28 17:47:12
Chapter 3. ER Diagrams, Domain Model, and N-Layer Architecture
In the last chapter, we saw the basic layering of the monolithic 1-tier 1-layer architectural style in action, with the UI layer having code-behind classes as the sub-layer. This 1-tier 1-layer architecture is the default style in ASP.NET and Visual Studio 2005/2008. To overcome the limitations of this style, we can further break the application code into n-layers, where the number "n" actually depends on the project requirements.
In this chapter we will:
- Learn the 2-layer style
- Understand ER diagrams
- Understand what a domain model is, and what UML relationships are
- Learn the 3-layer style
- Learn about object data source controls
Let's revisit the 1-tier ASP.NET application configuration described in the last chapter.

As mentioned in the last chapter, we can call this 1-tier architecture a 3-tier architecture if we include the browser and database (if used). For the rest of this chapter we will ignore the database and browser as separate tiers so that we can focus on how to divide the main ASP.NET application layers logically, using the n-layer pattern to its best use.
We will first try to separate the data access and logical code into their own separate layers and see how we can introduce flexibility and re-usability into our solution. We will understand this with a sample project. Before we go ahead into the technical details and code, we will first learn about two important terms: ER Diagram and Domain Model, and how they help us in getting a good understanding of the application we need to develop.
- PrestaShop 1.3 Theming – Beginner’s Guide
- OpenStack實(shí)戰(zhàn)指南
- 斯科特·凱爾比的零基礎(chǔ)攝影后期課 Lightroom數(shù)碼照片調(diào)修技法
- 照相館的故事:Photoshop CC 2018調(diào)色合成精修
- 工業(yè)軟件研發(fā)、測(cè)試與質(zhì)量管理論叢
- 皮膚鏡圖像分析與識(shí)別
- AutoCAD 2016入門與提高(超值版)
- Autodesk Ecotect Analysis綠色建筑分析應(yīng)用
- 零基礎(chǔ)學(xué)Photoshop CS6(全視頻教學(xué)版)
- AI設(shè)計(jì)時(shí)代:Midjourney實(shí)戰(zhàn)應(yīng)用手冊(cè)
- MODx Web Development
- Photoshop圖像處理立體化教程:Photoshop 2021(微課版·第2版)
- 手把手教你學(xué)成Excel高手
- After Effects影視特效與電視欄目包裝實(shí)例精粹
- CorelDRAW 2017從新手到高手