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

  • Home
  • SEARCH
  • 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 7710189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:03:41+00:00 2026-06-01T01:03:41+00:00

I have a design/best practice question relating to MVC3. I have a front page

  • 0

I have a design/best practice question relating to MVC3. I have a “front page” for the site that may contain a some summary information for non-related tables from my Model.

Is it better to create Partial Views dedicated to each Model, or to create a ViewModel to bind everything together?

The “pro” of Partial Views is that it truly separates concerns, with the “con” being that the partial views will probably not be reused elsewhere on the site.

The “pro” of ViewModels is that it allows a single strongly-typed object to be applied to a View, with the “con” being that the data is really unrelated and the binding artificial.

  • 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-06-01T01:03:42+00:00Added an answer on June 1, 2026 at 1:03 am

    For clarity and maintainability I’d choose this

     public class SummaryModel
     {
         public Patial1Model Partial1 {get;set;}
         public Patial2Model Partial2 {get;set;}
         //etc
     }
    

    The main benefit is not reusability (but who knows?) but maintanability. With this model is very easy to modify data for a partial or to reuse it in other places.

    summary information for non-related tables from my Model.

    In a view, the ViewModel is the Model, In fact the app should not care about tables and other persistence details. The model of the app is the mainly the domain model, the pocos for EF or NH are persistence model. The views know about their model which is different from the app or the persistence model.

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

Sidebar

Related Questions

I have posted a question about multilanguage database design here, [] What are best
I have a question about best practices with the Module Design Pattern. The code
I have a quick question - is there a best practice in SQL Table
What is currently regarded as best practice in UI design for displaying actions that
I have to design a data structure that is to be used in a
Have a question about the design/usage of asp.net mvc here. In the html helper
This is more of a design question. Suppose you have a method like this
Hey, I have a question regarding code structure, and was wondering what the best
I am trying to design a subclass that will contain responses to multipart questions
Wondering what others do / best practice for communicating between layers. This question relates

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.