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

Two Tier Model

Here we create two projects, one normal web project for UI code, and another class library project for the BL and DAL code. This will ensure that even if we change the BL or DAL code, we don't need to recompile the web project as we have separate physical assemblies. This setup is more scalable and maintainable than all previous options. Separating code into different assemblies will involve a slight performance hit, but that is negligible considering the flexibility and maintainability benefits we get by having two tiers.

The solution will have:

  • ASP.NET Web Project having GUI and presentation code (Tier 1)
  • A class library project having business logic and data access coding under a single namespace, MyApp.Code; no separate namespaces for business logic and data access code (Tier 2)

In this case, we still have the BL and DAL code under one namespace, but we can logically separate them further, as shown below.

主站蜘蛛池模板: 广汉市| 禄丰县| 民权县| 北京市| 葫芦岛市| 南城县| 分宜县| 鹿邑县| 安化县| 台州市| 逊克县| 榆社县| 萨迦县| 丹棱县| 余庆县| 黄冈市| 鄂伦春自治旗| 平湖市| 清镇市| 绩溪县| 乌什县| 龙山县| 通辽市| 巴林左旗| 鄂尔多斯市| 通化市| 青铜峡市| 上思县| 龙胜| 辽阳县| 延寿县| 东山县| 政和县| 永登县| 辉南县| 鄱阳县| 周宁县| 蕉岭县| 宁河县| 交城县| 沐川县|