Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > MVC v. n-tier

Reply
Thread Tools

MVC v. n-tier

 
 
Mark
Guest
Posts: n/a
 
      12-30-2004
I'm having trouble envisioning when I would choose to develop an ASP.NET web
application using the Model-View-Controller pattern rather than an n-tier
approach (code-behind, business object, data access tier, SQL Server).

I'd be interested to hear the situations that people have found MVC to be
the "right" solution for an ASP.NET application.

Thanks in advance.

Mark


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW1pcg==?=
Guest
Posts: n/a
 
      12-30-2004
I think in ASP.NET application, n-tier is more applicable.
Because there is some Microsoft Certified patterns for this architecture
using .NET resources.

But I prefer MVC. Because is more extensible.

In general, you must allocate same time for developing your .NET application
in both architecture. (Because in enterprise and complex J2EE application
also you must expand the ActionServlet and develope it.)


"Mark" wrote:

> I'm having trouble envisioning when I would choose to develop an ASP.NET web
> application using the Model-View-Controller pattern rather than an n-tier
> approach (code-behind, business object, data access tier, SQL Server).
>
> I'd be interested to hear the situations that people have found MVC to be
> the "right" solution for an ASP.NET application.
>
> Thanks in advance.
>
> Mark
>
>
>

 
Reply With Quote
 
 
 
 
Anders Norås [MCAD]
Guest
Posts: n/a
 
      12-30-2004
> I'm having trouble envisioning when I would choose to develop an ASP.NET
> web
> application using the Model-View-Controller pattern rather than an n-tier
> approach (code-behind, business object, data access tier, SQL Server).

Using a MVC pattern does not rule out an n-tier architecture. If your
architecture will benefit the MVC pattern you should use it, but you should
still use business objects, a proper data access layer, service facades and
similar. Microsoft has a powerful MVC implemtation in the User Interface
Process (UIP) application block
(http://msdn.microsoft.com/library/de...tml/uipab.asp).
I also suggest that you look at the other patterns and practies for
application architecture and design found here
http://msdn.microsoft.com/library/de...ttandpract.asp
for a complete overview of how to use UIP with an n-tier architecture.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/


 
Reply With Quote
 
Joerg Jooss
Guest
Posts: n/a
 
      12-30-2004
Mark wrote:
> I'm having trouble envisioning when I would choose to develop an
> ASP.NET web application using the Model-View-Controller pattern
> rather than an n-tier approach (code-behind, business object, data
> access tier, SQL Server).
>
> I'd be interested to hear the situations that people have found MVC
> to be the "right" solution for an ASP.NET application.


MVC does not contradict n-tier at all. MVC is a pattern to decouple your UI
(presentation layer) from your model (domain layer). Layering is an approach
to decouple subsystems in general (and much more). MVC is basically a recipe
to enable proper layering.

Cheers,

--
Joerg Jooss
www.joergjooss.de



 
Reply With Quote
 
=?Utf-8?B?WWF0ZW5kcmEgS2hhbmRlbHdhbA==?=
Guest
Posts: n/a
 
      01-03-2005
You are right Mark ...... If we envision n-tier architecture as
'UserInterfaceLayer+BusinessObjectsLayer+DAtaAcces sLayer' then this UIP
implementation of MVC is how you implement 'UserInterfaceLayer'.
'BusinessObjectsLayer' and 'DataAccessLayer' are independent of whether we
use UIP or not in 'UserInterfaceLayer'. So the best option according to me in
such situation would be to use n-tier architecture with UIP in
'UserInterfaceLayer'.

refer fig 1.1 on
http://msdn.microsoft.com/library/de...uipab-ch01.asp

- Yatendra

"Joerg Jooss" wrote:

> Mark wrote:
> > I'm having trouble envisioning when I would choose to develop an
> > ASP.NET web application using the Model-View-Controller pattern
> > rather than an n-tier approach (code-behind, business object, data
> > access tier, SQL Server).
> >
> > I'd be interested to hear the situations that people have found MVC
> > to be the "right" solution for an ASP.NET application.

>
> MVC does not contradict n-tier at all. MVC is a pattern to decouple your UI
> (presentation layer) from your model (domain layer). Layering is an approach
> to decouple subsystems in general (and much more). MVC is basically a recipe
> to enable proper layering.
>
> Cheers,
>
> --
> Joerg Jooss
> www.joergjooss.de
>
>
>
>

 
Reply With Quote
 
=?Utf-8?B?WWF0ZW5kcmEgS2hhbmRlbHdhbA==?=
Guest
Posts: n/a
 
      01-03-2005
i m sorry for confusion in names in my previous post I agree with Joerg and
express my views.

"Joerg Jooss" wrote:

> Mark wrote:
> > I'm having trouble envisioning when I would choose to develop an
> > ASP.NET web application using the Model-View-Controller pattern
> > rather than an n-tier approach (code-behind, business object, data
> > access tier, SQL Server).
> >
> > I'd be interested to hear the situations that people have found MVC
> > to be the "right" solution for an ASP.NET application.

>
> MVC does not contradict n-tier at all. MVC is a pattern to decouple your UI
> (presentation layer) from your model (domain layer). Layering is an approach
> to decouple subsystems in general (and much more). MVC is basically a recipe
> to enable proper layering.
>
> Cheers,
>
> --
> Joerg Jooss
> www.joergjooss.de
>
>
>
>

 
Reply With Quote
 
RWBradley RWBradley is offline
Junior Member
Join Date: May 2010
Posts: 1
 
      05-06-2010
Just a note. Most ASP.NET/Code Behind developers don't develop n-tire applications. In most cases every page with its associated code behind file has a dependency on the data layer. So at best you could, maybe, call this a two-layer application. MVC helps you in the seperation of concerns which is vital to building a robust n-tier application. One note, MS's default is to put the model in the presentation layer, the model should be part of the business layer.
 

Last edited by RWBradley; 05-07-2010 at 12:01 AM..
Reply With Quote
 
CmdJerry CmdJerry is offline
Junior Member
Join Date: Mar 2011
Posts: 1
 
      03-10-2011
This might help clarify your question: http://allthingscs.blogspot.com/2011...r-pattern.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No MVC Project Template after installing ASP.NET MVC 1.0 Crazy Cat ASP .Net 1 09-03-2009 08:02 PM
WebForms X MVC? Why MVC? Give me reasons to migrate my web apps to it please. Pros x Cons! Thanks! Paulo ASP .Net 3 12-04-2008 03:00 AM
differences between Spring WebFlow,Spring MVC,and String Portlet MVC? rmn190 Java 2 01-10-2008 02:27 AM
MVC Model in .Net ASP .Net 7 11-29-2003 06:40 PM
Any gd example for MVC Design in ASP.NET ? winglite ASP .Net 1 11-03-2003 05:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57