Monday 18 March 2019

Working with N-tier Architecture Or 3- Tier Architecture using Asp.net

Agenda :
            Dear all In this article i would like to emphasize the essence of Working with N-tier Architecture Or 3- Tier Architecture using Asp.net.This article was demonstrated with the help of C#.Net using Linq To SQl.

Description :
          In previous articles I explained different articles related to C#.Net,Asp.Net,Sql Server,XML and DotNetInterviewQuestions Related articles.Let's know how we will work with Work with Working with N-tier Architecture Or 3- Tier Architecture using Asp.net




About N-Tier Architecture :
  • N-Tier architecture is also called as an multi-tier architecture which illustrates the essence of logical separation. 
  • Because software is tailored with accepting of inputs from the user there by involving in business logic implementation, data processing etc…
  • To make all the things in to separate for effective maintainability we used to use N-Tier architecture
  • In order to work with N-Tier Architecture we have to understand about Model,Presentation,Business and Data Access Layer




Layers varies from project to project as well as organization to organization. Primarily we will focus on the following  layers



Model Layer :

      This layer is responsible of declaring classes in the project

E.G: Classes related to User Creation,Role Creation,Login etc has to be declared in this layer



Presentation Layer :

This layer is responsible of designing of the UI (User Interface) design

E.G: Interactive Web Pages



Business Access layer :

     This layer  is responsible of handling business logics related to the project

     E.G:If we want to display only 5 records then we will write necessary logic in business access layer


Data Access Layer :
     This layer is responsible of handling database interactions related to the project
     E.G: Interacting to the database using queries / stored procedures

Steps to implement :


About layers in N-Tier architecture :


      1. Create a Website.Name it as OBRM(Online Bus Reservation Management System)
      2. Right Click on the solution Add New Project Select Class Library name it as OBRBL(Business Layer Project)Click Ok

      3. Again Right Click on the solution Add New Project Select Class Library name it as OBRDL(Data Access Layer Project)Click Ok

      4. Add the reference of OBRML to OBRBL,OBRDL and OBRMain(Presentation Layer)

      5. Set Project Build Order dependencies of the project

      6. Write the code in every layer and build it

      7. Run the application by setting OBRMain as Startup Project
Functionalities focused in this tutorial :
  • Role ScreenInsert,Edit,InActive
  • Users ScreenInsert,Edit,InActive
  • Change Password
  • Sign Up Screen
  • Forgot Password
  • Login Screen With Forms Authentication based on role
  • SignOut


Source Code can be available in the below link :


                                 Click Here






No comments :

Post a Comment