ASP.NET 3.5 Application Architecture and Design
上QQ阅读APP看书,第一时间看更新

Two Tier—Two Layer Model

We can further separate the BL and DAL code into their own separate namespaces and class files, so that different developers can work on BL and DAL simultaneously, under a multiteam set up.

The solution will have:

  • ASP.NET Web Project having Presentation Layer coding in ASPX and ASCX files, under the namespace, MyApp.Web (Tier 1)
  • A class library project having two folders (Tier 2):
    • Business: for business logic code, with namespace MyApp.Code.Business (Layer 1)
    • DAL: for data access code, with namespace MyApp.Code.DAL (Layer 2)