Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1045273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:57:36+00:00 2026-05-16T15:57:36+00:00

Having used ViewModels in MVC, I was wondering if applying the same to the

  • 0

Having used ViewModels in MVC, I was wondering if applying the same to the MVP pattern is practical. I only have a few considerations, one being that MVP is already fairly hard to implement (with all the additional coding, not much on the seeming complexity) or that ViewModels already have a slightly similar way of modeling data or entities. Would adding another layer in the form of ViewModels be redundant or is it a logical abstraction that I, as one implementing the MVP pattern, should adhere to?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:57:36+00:00Added an answer on May 16, 2026 at 3:57 pm

    ViewModels can be very useful in MVP, and I think add more benefit than the cost of extra coding.

    I think the guiding rule is to use them where you need them, not simply to add more patterns or architecture for their own sake.

    I work on a decent sized public facing asp.net web application, but the following applies to MVP in WinForms as well. Below are the reasons I found to use VM in MVP.

    The site aggregates data from a boatload of LOB web services. The services are maintained by various development groups in different business verticals. The data coming back is all over the place in terms of:

    • Type Soup – Storing GUIDs as strings, returning doubles instead of decimals, dates as strings, etc
    • Crazy Naming Conventions – Camel case properties, underscores in names, abbreviation jumbles

    But the biggest reason I found to use it was the model provided was the same as in MVC: the models just didn’t fit the shape of the views. We are combining model classes and adding extra fields for calculations or aggregated values, etc.

    In terms of changes we made we had to:

    • Create a new ViewModels folder along side the Views and Presenters (Controllers) folder
    • Map the model values to the view model
    • Change the property on the view interface from a model type to a view model type
    • Implement the view according to the new object

    The only time consuming part of this is naturally the mapping of the model(s) to the view model. In our case we are forced to do a decent amount of processing in our presenters to get the data we need that assigning properties is not a big deal. For simpler needs something like AutoMapper would remove this pain for mappings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

AKA - What's this obsession with pointers? Having only really used modern, object oriented
I have being having trouble with the web server used for our intranet. It
Having used Seaside the past few years I've found template systems to be a
Having used optional parameters in a few classes here and there, I'm starting to
Having used Haml and Sass for a few Rails side projects, I've found that
I just setup AnkhSVN after having used TFS till now What in AnkhSVN is
I'm new to the Oracle Platform (having primarily used MySQL, with a little Postgres
I am used to having static methods in the App_Code folder, this folder is
When declaring a template, I am used to having this kind of code: template
Am having a batch file used to update certain files. However when i try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.