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

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.

主站蜘蛛池模板: 老河口市| 永定县| 出国| 宝清县| 绥宁县| 公安县| 抚顺市| 襄汾县| 皮山县| 子长县| 信丰县| 通道| 恩施市| 乌兰县| 福安市| 鹤庆县| 龙里县| 淳安县| 黎城县| 青川县| 滦南县| 阳江市| 河北区| 正阳县| 崇信县| 错那县| 克拉玛依市| 忻州市| 汝城县| 工布江达县| 常德市| 德格县| 乐都县| 体育| 涿州市| 泰来县| 万安县| 建昌县| 南靖县| 南通市| 左贡县|