Solved

N-Tier Architecture in ASP.NET

Posted on 2012-12-29
2
900 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

864 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

21 Experts available now in Live!

Get 1:1 Help Now