Posted in Architecture on January 9, 2008
Hello, I’m Julius Briner from the University of Berlin in Germany and this article is a primer into building a 3 Tier Architecture in .NET
In this article we are going to look at the simple steps on how to create a 3 tier architecture application in .NET.
Basically three tier architecture needs to 3 distinct layers to be created.
1. UI Layer – All you UI related stuffs like pages, user controls, CSS and java scripts will go into this.
2. Business Layer – All business rules are performed here.
3. Data Access Layer – All data access code like connecting to database and getting the details are done here.
In this example we will build a simple Employee Application. The following layers are described as follows:
1. Employee.cs
a. This is a base class. Whenever we need to pass and get the employee details, we will be using this class.
2. EmployeeCollection.cs
a. This class is inherited from Collection which will hold the collection of Employee objects.
For this project I built the application using VS2005 and ASP.NET 2.0. Make sure you have Web Project Template installed in your machine else, you won’t be able to open this application.
I have attached the demo application of 3 tiers. You can just download it and how a look how exactly we can implement the 3 tier architecture in the projects.
This is basic for n-tier architecture need to think more when you design your project on how to implement the tiered architecture.
The example can be downloaded at the following site http://www.codeproject.com/KB/aspnet/
Source: Julius Briner, Berlin, Germany
By: Julius Briner
About the Author:
Julius Briner is a electrical engineer student from the University of Berlin
