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

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.

主站蜘蛛池模板: 旬邑县| 南靖县| 杂多县| 峨山| 峨边| 阿拉善盟| 宜都市| 苏尼特左旗| 神木县| 南涧| 修文县| 务川| 河南省| 永泰县| 天台县| 陆河县| 滦平县| 博罗县| 新民市| 临沭县| 广汉市| 阳泉市| 于都县| 神木县| 滁州市| 房山区| 浦江县| 陆川县| 芷江| 于都县| 峡江县| 太仆寺旗| 洞口县| 运城市| 册亨县| 莎车县| 云浮市| 平武县| 当涂县| 崇义县| 北票市|