Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I am new to the n-tier architecture,i want to create a simple application using n-tier architecture.Any could give step by step tutorial for n-tier architecture including codes?
Any help highly appreciate.

Thanks and Regards
Abdul
Posted

 
Share this answer
 
Comments
Christian Amado 3-Sep-12 10:32am    
Why downvoted?
Richard MacCutchan 3-Sep-12 12:59pm    
Probably because OP expected you to write a complete tutorial that would make him/her an expert overnight. :)
Christian Amado 3-Sep-12 13:25pm    
Good point Richard. I don't thing about it. hahaha Regards
__TR__ 3-Sep-12 12:19pm    
5ed :)
Christian Amado 3-Sep-12 16:40pm    
Thanks :)
To understand about n-tier, read about 3 tier here and see how it works:
Create a class library - BusinessLogic (2nd layer)
Create a class library - DataAccess (3rd layer)

Now, from your UI (1st layer), use the object model and pass on to BusinessLogic project class. This class is a Business logic class. Do the changes as per your need here.
Now, pass on the changed data from business logic class to dataAccess project class. In this class, use ADO.NET and pass on the needed values to Stored Procedure.

For getting back data, it will be transferred from DA to BL and then BL to UI layer.
Have a look at these, explaination with samples:
3-tier architecture in C#[^]
3-Tier Architecture Examples[^]
3-Tier Architecture in ASP.NET with C#[^]

Now you can put as many layers in between UI & DB layer to increase it from 3-tier to n-tier as per your need.

..and visit google[^] too.
 
Share this answer
 
Comments
__TR__ 3-Sep-12 12:19pm    
Good Links and explanation. 5ed!
Prasad_Kulkarni 4-Sep-12 0:36am    
Thank you TR!
Mohamed Mitwalli 3-Sep-12 14:32pm    
5+
Prasad_Kulkarni 4-Sep-12 0:37am    
Thank you Mohamed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900