官术网_书友最值得收藏!

Single Tier—Two Layer Model

In this type of solution, we will still have only one web project, but we will separate the UI code into one namespace, and the BL and DAL into another namespace.

ASP.NET Web Project that has two folders:

  • Code: This folder will have class files containing business logic and data access code under a single namespace, say MyApp.Code
  • Web: This folder will have the user controls, ASPX pages, and other presentation-related code under the namespace, say MyApp.Web

Here, as the business logic and data access code are logically separated from the presentation code, we have two layers. However, as all code files would still be compiling into assemblies under a single project's /bin, we will have only one tier. We can use this model for projects that have little or no business logic but need to access a database for content.

主站蜘蛛池模板: 阿荣旗| 阳原县| 鄂州市| 鄂尔多斯市| 永胜县| 巴里| 临沭县| 尤溪县| 黄山市| 依安县| 温州市| 定结县| 阳江市| 龙南县| 寻甸| 两当县| 岳阳县| 临澧县| 禄劝| 古蔺县| 南丰县| 浮山县| 壤塘县| 永新县| 清涧县| 闽清县| 岳池县| 盘山县| 双城市| 镇远县| 徐水县| 漳州市| 盖州市| 怀宁县| 五大连池市| 京山县| 沈丘县| 喀喇| 青河县| 温泉县| 乌什县|