Here i will explain How to create Three-tire Architecture in .Net using C#. Here i am not going to show how to use connection string from web.config because, Previously i showed how to use Connection String in Three-Tire architecture from web.config file in this POST.
In this post i am using ASP.Net for my convenience. In realtime also most of the Developers use ASP.Net only.
Here we have 3 projects
In this post i am using ASP.Net for my convenience. In realtime also most of the Developers use ASP.Net only.
Here we have 3 projects
- UI Validation (ASP.Net)
- BLL (Business Logic Layer)
- DAL (Data Access Layer)
- Create a ASP.Net Project and name it as u like. in my case (ThreeTire) -- UI
- In the SolutionExplorer Rightclick on the project u created (ASP.Net) and add Class Project and Name it as U like, in my case (ThreeTire.BLL) -- BLL
- Again In the SolutionExplorer Rightclick on the project u created (ASP.Net) and add another Class Project and Name it as U like, in my case (ThreeTire.DAL) -- DAL
- First RightClick on the ThreeTire.BLL and add reference of ThreeTire.DAL
- In the Same way RightClick on the ThreeTire (ASP.Net) project and add reference of ThreeTire.BLL