Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi i am new to .net and want to know about 3 tier architecture explain (use c# only) with example?

And how to use it?
Posted
Updated 5-Aug-11 1:37am
v2
Comments
Sergey Alexandrovich Kryukov 2-Aug-11 20:49pm    
The question has little sense. For example, the words "using architecture" already show that the question is based on misconception and not using common sense. When you need to erect a building, how do you "use architecture"? The architect creates it, right? Architectural artifacts are used. Answering this question properly is only possible is started from the explanation what software is, but how to do it in a short answer?
--SA
[no name] 24-Mar-12 5:20am    
Hellow i am not saying to provide a lesson to me on this just asking for help you are not able to provide me the answer then dont say these kind of things jst see how Sir Espen answer it
Sergey Alexandrovich Kryukov 25-Mar-12 5:13am    
I don't why can you ask me to avoid saying things which I consider important enough. Why? By answering this way, I am trying to give you some instructive ideas on the topic and your possible approaches to it. In many cases, you could use this information to improve your question, to make getting more serious answer more likely.

If the comment criticize you, you should not look at this negatively. This is one of the most important aspect of learning.

Anyway, please see my answer.
--SA
[no name] 24-Mar-12 5:32am    
Mr. Sergey A. Kryukov you are my senior just like a teacher for me if my question is wrong or has less sense then please correct me out Just like Sir Espen did i am gratefull to him
Thanks Sir
Sergey Alexandrovich Kryukov 25-Mar-12 5:15am    
Thank you for your nice words; this is exactly what I'm trying to do. Please see my previous comments. If I though your question was hopeless, I would not reply at all.
--SA

Anytime you create a program, in c#, or any other language or platform – you have an architecture. It can be good[^], haphazard[^] or purely accidental[^].


If you are serious about software development read:
Pattern-Oriented Software Architecture: A System of Patterns, Volume 1[^]

Pattern-Oriented Software Architecture: Patterns for Concurrent and Networked Objects, Volume 2[^]

Pattern-Oriented Software Architecture: Patterns for Resource Management, Volume 3[^]

Pattern-Oriented Software Architecture: A Pattern Language for Distributed Computing, Volume 4[^]

To get started on the .Net platform read:
.Net Components[^] - it will provide you with a good undestanding of the basics of .Net. Pro C# 2010 and the .NET 4[^] provides a nice overview - and is perhaps the best book to start with as it will also introduce you to c#.

Best regards
Espen Harlinn
 
Share this answer
 
v3
Comments
fjdiewornncalwe 2-Aug-11 15:56pm    
Excellent answer, especially for someone looking for a homework solution.
Espen Harlinn 2-Aug-11 16:23pm    
Thanks Marcus! I first tried using the img tag, but CP tripped that up for me ...
thatraja 2-Aug-11 16:51pm    
Good bunch, 5!
Yeah, Currently Img tag disabled in Q/A :(
Espen Harlinn 2-Aug-11 18:28pm    
Thank you, thatraja!
walterhevedeich 2-Aug-11 17:28pm    
My 5.
I have due regard to the answers provided by CP Seniors.
There is a lot to the tiered architecture for which lot of pointers were already provided in the above answers.

I want to give a general description of 3 Tier Architecture.
Broadly speaking 3 Tier Architecture is to divide the application into 3 tiers or layers as Data layer, Business layer and Presentation or GUI layer.
The purpose is to maintain a loosely coupled system. For example the presentation layer is say developed with Windows Forms and later you want to implement ASP.NET Web Forms, you can easily create one more project with ASP.NET in presentation layer and the Business and Data Layers can be used with the newly created ASP.NET web forms. Similary, say initially MS Access is used for Data access and later you want to switch to SQL Server, it can be achieved with out disturbing the Business and Presentation or GUI layers.

I think the following article may be useful
3-tier architecture in C#[^]
 
Share this answer
 
Comments
[no name] 25-Mar-12 7:20am    
Thanks Proo..
ProEnggSoft 25-Mar-12 7:23am    
Thank you.
A step by step tutorial on creating an application with 3 tier Architecture is given here.
3-tier Architecture with ASP.NET 2.0[^]
I think this may also be helpful.
 
Share this answer
 
Comments
[no name] 10-Apr-12 7:50am    
Thanks A Lot.
VJ Reddy 10-Apr-12 7:55am    
You're welcome.
Basically, the multi-tier approach is used to isolate parts of the applications to make the solution of the problem more manageable, distribute workload between different host, improve responsiveness and reliability while supporting good maintainability of the solution.

Please see:
http://en.wikipedia.org/wiki/Multitier_architecture[^].

—SA
 
Share this answer
 
Comments
[no name] 25-Mar-12 6:32am    
Thanks Sir ..
Sergey Alexandrovich Kryukov 25-Mar-12 13:15pm    
You are welcome.
--SA
ProEnggSoft 25-Mar-12 7:19am    
+5
Sergey Alexandrovich Kryukov 25-Mar-12 13:16pm    
Thank you.
--SA

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