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 7438249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:31:27+00:00 2026-05-29T10:31:27+00:00

Design wise, I am struggling with where to keep items I use on the

  • 0

Design wise, I am struggling with where to keep items I use on the front-end for textboxes, radio button lists, etc.

My latest thought is to keep all the objects for a particular service I provide in one file. It would wind up being a 200+ line file, but keeps everything I use on that one service in one place. I have multiple services, so breaking up one service Model.cs file into several becomes a bit cumbersome. Plus, if I break them up into multiple models I run into the problem of needing bits from each model and then having to create a ViewModel.cs just to contain the sub-models when I present it in my View.cshtml file.

I may not have things correct.

The other problem I have is that I want to present different views for different solutions within the service. For example: I have Service 1 that I provide, and within that I want to be able to have 4 distinct things. 1) Quote. 2) Evaluation. 3) Consultation. 4) Solution.

Each builds on the former, so an Evaluation will also contain the elements of a Quote but also have its own elements. A Consultation will contain the elements of a Quote and Evaluation, and some of its own elements. And a Solution will contain all 3 of the former with its own elements.

Assume each has 10 elements. I could go the route of creating four Model.cs files for each, or one main one for all 40.

I know everyone has different design ideas, but I am wondering if going with one Model.cs file for all 40 elements will make my life easier than having 4 separate files of 10 elements, each of which is referenced in various solutions (requiring a fifth file to house all 4 Model.cs files).

Any thoughts?

  • 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-29T10:31:28+00:00Added an answer on May 29, 2026 at 10:31 am

    Although I could have opted for having multiple ViewModels and then tie them together using a BigViewModel, this would not work for my requirements. I have 4 distinct ViewModels, and in some instances would not need to use them all.

    I’ve just opted to create one big model and pull from it as needed. I have not seen any significant performance hit, which is what my main concern was.

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

Sidebar

Related Questions

This is a design issue I keep running into, so I thought I would
Design wise and performance wise which approach is recommended for handling multiple Zeromq sockets
Design requirement: Show a list of items the user can pick from After having
Design patters are a point of arguments between developers, but I use them very
I have a few questions for you wise people involving OO design with Interfaces
As we have so many design patterns in java, like wise do we have
Performance and Design wise what would be the pros and cons Using a sealed
Ive been trying to style a submit button using an image. I would use
Design an algorithm that, given a list of n elements in an array, finds
Design of SQL Table Users: Columns: ID(Primary Key), Name, Age, Zip. I am displaying

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.