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

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.

主站蜘蛛池模板: 金溪县| 巴青县| 沧州市| 阿图什市| 时尚| 平利县| 容城县| 循化| 太仓市| 固镇县| 安国市| 富平县| 章丘市| 廊坊市| 安龙县| 五峰| 克什克腾旗| 莎车县| 恩施市| 保德县| 新津县| 长海县| 东至县| 罗定市| 遵义市| 临夏市| 垣曲县| 漳平市| 莒南县| 泸定县| 汉寿县| 巨野县| 闵行区| 沛县| 平和县| 柘荣县| 平遥县| 台东市| 甘德县| 虞城县| 福鼎市|