![]() |
Development Lifecycle »
Design and Architecture »
Application Design
Advanced
License: The Code Project Open License (CPOL)
Model View Presenter And Its Best PracticesBy santosh poojariThe article describes Model View Presenter Architecture,its Best practices and advantages. |
C# (C# 2.0), .NET (.NET 2.0, .NET 3.0), ASP.NET, Architect, Dev, Design
|
||||||||||
|
Advanced Search |
|
|
|
||||||||||||||||
With the advent of newer technology and framework, architecture design has become very important for development of application.Utilization of the same business functionality across platform based Web application and smart client needs a tactful architecture.Another challenge has been to fit in unit testing framework with the application. MVC failed to achieve this. MVP proved to be boon to achieve this milestone.



Make use of partial class. Assign class name as screen or page level attribute.
ClientLookupDataProvider.cs
partial public class DataProvider
{
}

public class BasePresenter
{
public IServiceProvider m_Service=null;
public BasePresenter()
{
m_Service=new Services.ServiceProvider()
}
public void ProcessPresenterLayerException()
{
}
}
Public void LoadCustomerList()
{
Ilist customerList = new list();
customerList = GetCustomerList(m_View.CustomerID){}
}
Public void SortCustomerList(){}
Public void PagingCustomerList(){}
Private IList GetCustomerList(int customerID){}
private int _demandID = int.MinValue;
private string _demandName = string.Empty;
Public Sample (int a, int b, int c): base (a)
{
……
}
public Sample(int a, int b, int c, int d):this(a,b,c)
{
..
}
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 5 May 2008 Editor: |
Copyright 2008 by santosh poojari Everything else Copyright © CodeProject, 1999-2009 Web18 | Advertise on the Code Project |