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

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.

主站蜘蛛池模板: 长岛县| 东光县| 赤壁市| 隆德县| 乌苏市| 遵义市| 开封县| 大悟县| 凌海市| 九龙城区| 余江县| 肇州县| 天津市| 页游| 清新县| 泰宁县| 白玉县| 吴川市| 同仁县| 丹江口市| 长治市| 玉门市| 巴林右旗| 二连浩特市| 华坪县| 寻甸| 崇义县| 中超| 郓城县| 大竹县| 夏河县| 绍兴市| 墨江| 平昌县| 桐城市| 泾阳县| 册亨县| 鹿泉市| 方山县| 正镶白旗| 灵丘县|