Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you think is an example of a well structured n-tier .Net application? [closed]

In the search for resources to become a better developer, I am looking for good examples of how to structure the code in n-tier applications.

Like... What does the business object do and look, how does it interface with the data access layer etc. How does the UI interface the business layer, and does it interface the DAL directly.

Do you know of great examples freely available, that are worthy of study?

like image 860
Kjensen Avatar asked Dec 20 '25 13:12

Kjensen


2 Answers

Microsoft Patterns & Practices have made an application architecture guide: http://www.codeplex.com/AppArch

They even made videos explaining what you are looking for.

like image 102
khebbie Avatar answered Dec 23 '25 04:12

khebbie


Have a look at this example: http://www.codeplex.com/TheBeerHouse, which was developed as the example for this book: http://www.amazon.com/gp/product/0764584642

It's .net 2.0 and not perfect, but it's a great example of an n-tier application that makes good use of the provider model. We've adapted the pattern and use if for 90% of our in-house development. Make sure you don't confuse this pattern with the MVC pattern, as they are quite different.

Have a look at the wikipedia article on n-tier architecture: http://en.wikipedia.org/wiki/Multitier_architecture. The presentation tier is implemented as pages and user controls in the example I have given, the logic tier (commonly called BLL or business logic layer) is concrete C# classes defining specific behaviour, and the data tier (commonly called DAL or data access layer) is abstract C# classes defining the storage mechanism with concrete C# classes for using Sql Server as the storage medium.

Hope this helps.

like image 27
Paul Suart Avatar answered Dec 23 '25 04:12

Paul Suart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!