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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:00:03+00:00 2026-05-12T23:00:03+00:00

We are working with entities in our MVC controllers which are passed to strongly

  • 0

We are working with entities in our MVC controllers which are passed to strongly typed views.

How do we re-instantiate these entities in the controller with updated data when the form is posted in the view?
The form does not contain all the fields of the entity so all of the data needed to
re-instantiate the entities won’t be there in the model binding. Only a partial set of data will be submitted.

I dont wont to reload the entities based on key values prior to updating them with posted values as this is
1) Inefficient 2) Prevent optimistic concurrency with my POCO objects in the Entity Framework if I dont keep the value original RowVersion concurrency field

But my question is is this the recommended way?

This question could apply to any entities that contain data that isnt re-submitted in the view and you dont want to reload the entities.

Thanks

  • 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-12T23:00:04+00:00Added an answer on May 12, 2026 at 11:00 pm

    I would just make the request to the database to get the entity again, and if you’re worried about concurrency, then check a version number or something. If your main concern is inefficiency, then just re-query the DB for now, and if it truly ends up being inefficient, then you can use some type of cache… what other options are there?

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

Sidebar

Related Questions

We're working in a Dynamic Data project that will handle entities coming from two
I'm working on a controller that handles logins for a Web app. These logins
The project I am working on requires data in our system to be synchronized
The project I'm working is using n-tier architecture. Our layers are as follows: Data
I am working on a project which uses Entity Framework 4.1 for persisting our
Working on a website that has Employee and Branch entities, using a database table
I'm working on an ASP.NET page where I've got 10 entities. I'll call them
I'm working on the following LINQ query: public void GetAuditRuleAgencyRecords(IEnumerable<Entities.AuditRule> rules) { using (LinqModelDataContext
In a project that I am working on, I have the following entities: Analyst
One of our products uses a Javascript Rich text editor, which has the ability

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.