Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm Fresher in Asp.net Language
Posted

1 solution

Last weekend someone asked a question about 3-tier development. Let me tell you this, a GridView is completely irrelevant and if you think it is then you've got a looooong way to go. Remember, it's not easy and you'll have to read, learn, study, practice, get experience... And another thing, no one here can really help you, since the design of a system is unique for every system and depends on many factors, such as tools, requirements, language, the team, time, money... You name it!
So here's what I answered last time, it might help you.

It's not easy, nor easy to explain. I suggest you start doing some reading on the subject.
First, you must understand Object Oriented Programming[^]. Make sure you get Encapsulation[^], Inheritance[^] and Polymorphism[^]. They are the 'three pillars of OOP'.
After that you are far from there yet. The SOLID principles[^] are key to building robust and re-usable software.
When you get all of these principles you may start reading up on Design Patterns[^].
All these will help you in building Multitier architected[^] software.

Basically, when it comes down to three tiers you have three layers of classes. A data layer, which will interact with your data store. Usually these are some classes that insert, delete, update and get data from a database. Many people use an Object Relational Mapper (ORM)[^] for this. In .NET Entity Framework[^] and NHibernate[^] come to mind.
The 'middle-tier' contains business logic. Here you perform actions on your business object, like calculating the total price of a sales order or an invoice. This tier interacts with your data layer, but not with your data store itself.
Finally there is the UI layer, which is where you present your data to users and allow users to interact with the business layer. An example of a UI layer can be WinForms, HTML and CSS or WPF front ends.
Google has lots of images representing what I just said, take a look[^].

Hope it helps! Good luck! :)
 
Share this answer
 

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