SIGN UP MEMBER LOGIN:    
ARTICLE

3 Tier Architecture

Posted by Harshit Vyas Articles | Networking November 02, 2010
3-Tier architecture is a very well know buzz word in the world of software development whether it web based or desktop based. In this article I am going to show how to design a web application based on 3-tier architecture.
Reader Level:
Download Files:
 

Introduction:

3-Tier architecture is a very well know buzz word in the world of software development whether it web based or desktop based. In this article I am going to show how to design a web application based on 3-tier architecture.

3-Tier architecture generally contains UI or Presentation Layer, Business Access Layer (BAL) or Business Logic Layer and Data Access Layer (DAL) and sometimes property layer.

Presentation Layer (UI)

Presentation layer contains pages like .aspx or windows form where data is presented to the user or input is taken from the user.

Business Access Layer (BAL) or Business Logic Layer

BAL contains business logic, validations or calculations related with the data, if needed. I will call it Business Access Layer in my demo.

Data Access Layer (DAL)
 
DAL contains methods that helps business layer to connect the data and perform required action, might be returning data or manipulating data (insert, update, delete etc). For this demo application, I have taken a very simple example. I am assuming that I have to play with record of persons (First Name, Last Name, and Age) and I will refer only these data throughout this article.

Property layer.

Generally it contains the entire variable those need to pass from presentation to bal, bal to dal and vice versa so instead of writing those each and every time we can create property layer.

Typical structure will look like this.

It contains one solution with three class library and one website.

layer.gif

Now to create above structure first create new project and add one visual studio blank solution.

Now add 3 class libraries and one website in it give the relative name to them.

For the code purpose or what to write in which layer please download the source code.
 

Login to add your contents and source code to this article
share this article :
post comment
 

Hi.. My project has same structure as you have shown here.. i want to add the Businesslayer reference to the website.. I have added the reference by right clicking the website and using add reference.. Also in the web page where i want to use the objects of the business layer i have added the refernce like this Using BusinessLayer; but still i get the error that namespace could not be found. What could be the error? can you please help me?

Posted by B M Suchitra Nov 16, 2011

Harshit this is the most easiest method which you have specified for 3 tier architecture its the best

Posted by kashif shaikh Jun 16, 2011

its clear my confusion about implementation of 3-Tier Arch... good work....!

Posted by Yogendra Kumar Mar 25, 2011

Thanks Man............

Posted by Harshit Vyas Nov 11, 2010

Good work Harshit.....

Posted by Jitendra Sampathirao Nov 11, 2010
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Team Foundation Server Hosting
Become a Sponsor