Solved

N-Tier Architecture in ASP.NET

Posted on 2012-12-29
2
905 Views
Last Modified: 2013-01-05
When building n-tier application, in DAL and BLL, if there is any changes in the future, do we modify those classes we create earlier, or do we use inheritance? Also, when building asp.net project, would you recommend to use n-tier? It looks like you have to make a lot of effort to this.

http://www.mindstick.com/Articles/d36ceb0f-018c-4979-b2f5-a4a1e616cb5b/?N-Tier%20Architecture%20in%20ASP.NET
0
Comment
Question by:VBdotnet2005
2 Comments
 
LVL 21

Assisted Solution

by:Tapan Pattanaik
Tapan Pattanaik earned 250 total points
ID: 38729624
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 250 total points
ID: 38729639
When building n-tier application, in DAL and BLL, if there is any changes in the future, do we modify those classes we create earlier, or do we use inheritance?
You would modify existing classes. Inheritance isn't intended for maintenance; it is intended for organization of your architecture.

Also, when building asp.net project, would you recommend to use n-tier?
Yes.

It looks like you have to make a lot of effort to this.
Sure. But the effort you put into designing the application now leads to savings in the maintenance of the project down the road. New development has a lot of time dedicated to design, but the actual coding does takes less than the whole of future maintenance.

Here's two scenarios to think about:

1.

When you originally designed the application, you had an existing Oracle database for the backend. It's now time to renew the annual support subscription for Oracle, but the bean counters notice that support for SQL server is much cheaper than Oracle, so they persuade the CIO to make the switch. How much easier do you think it would be to just swap out your DAL for one that talks to SQL server, rather than hunt for every place in the project you used an OracleConnection instance to replace with a SqlConnection instance?

2.

The A+ team that created the new Foomatic system all got new higher paying jobs outside of the company due to their stellar work on Foomatic. You were not involved with the Foomatic project during its creation, but now that everyone on that team is gone, you have inherited the maintenance of the project. Would it not be easier for you to know how the project was organized without even having to look at the code? Can you imagine how difficult it would be for you to pick up a new custom-code project that didn't follow any established standard(s)? Remember the kind of code you would write when you first started coding? Imagine you inherited "Joe the intern's" code.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Host asp.net pages 5 33
Show/Hide ASP.NET controls with JQuery best practices 3 45
performance issue in asp web 5 28
jquery datatables, asp.net MVC 9 38
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now