How to implement 3 tiers architecture in c#

匆匆过客 提交于 2019-11-27 18:54:10

The above describe a very simple architecture of a 3-tier model.

  1. DAL (Data Access Layer) interacts with Database directly, so all the SQL operation are being done within DAL only.
  2. BLL (Business Logic Layer) works like a mediator between DAL and the Presentation Tire.
  3. No direct communication is allowed between DAL and Presentation Layer.
  4. Although there is no physical presence of the Entity Layer, but Entity encapsulates all the information/data and passes it from one layer to the other.
  5. So all the Database object name and the Database Schema is being restricted inside the DAL which gives an extra security layer to the application.
  6. As Business rules/logics are being defined inside BLL, any update to business logic will not impact the DAL and the presentation layer

This diagram describes an actual implementation of a 3-tier model.

  1. Data Access Service and the Database Server can be hosted in single Server.
  2. Mostly SQL Server 2000/2005/2008 or Oracle can be hosted on Windows 2000/2003 Server.
  3. Business Server exposes all the operation through Web Service /Remoting/WCF.
  4. A highly configured server with Windows 2000/2003 can be used to host the Business Service, or else Microsoft BizTalk Server also can be used for this.
  5. Presentation Tier or the Client Consumes the Service exposed at Business Server by using the Proxy through http:// pipeline.
  6. Client can be any standalone machine with the application is being installed in case of Desktop Application (Win-Form or Console Application), or having a Browser to run Web Application.
  7. Data/Information are being encapsulated by entity and transferred from one location to another over network followed by all the network protocol.
Soner Gönül

There are 2 cool project about three tier architecture in C#.

3-tier architecture in C# and T̶h̶r̶e̶e̶ ̶L̶a̶y̶e̶r̶ ̶A̶r̶c̶h̶i̶t̶e̶c̶t̶u̶r̶e̶ ̶i̶n̶ ̶C̶#̶ ̶.̶N̶E̶T̶. Both projects are amazing specificly for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!