Dofactory.com
Dofactory.com
 Back to list
Views:   12.2K
Replies:  2
Archived

Looking for an MVP explanation and example

Hello 
From what I understand, MPV is a pattern to be used in Windows application.
Is this correct?

If so, could someone provide an example?

Thanks!
Itman Man, May 21, 2012
MVP can also be used for web apps. my last job we used MVP for out web apps.
May 22, 2012
Reply 1
Some info here..http://www.dofactory.com/topic/1597/model-view-presenter-with-both-webforms-and-winforms/1782.aspx#p1782

M
VP nicely plays with windows app as well as web forms.  We recently migrated a windows forms app built on MVP to asp.net web forms MVP.

The migration was simple as only the views was required to be coded.  All other things remained same.

To the beginner MVP may seem too much of abstraction, but once you get the crux of it, everything falls in its place.  It's definitely a recommended approach to big enterprise application.

Some more examples here..
http://geekswithblogs.net/rajeshpillai/category/10990.aspx 

 
Rajesh Pillai, May 29, 2012
Reply 2
Not only for Windows. It's for Web Application as well.
Example: Any WebForm which having following functionallity like
  • Web Form With Validation. It can be entry or display form. (It's nothing but View and Presentation)
  • Manipulating data according business process.(It's nothing but Service or Domain).
  • Interacting with DB for retrieving and storing data. ( It's nothing but Data Access)
Regards,
Nirav Valera




Nirav Valera, May 24, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.