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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:16:41+00:00 2026-05-15T16:16:41+00:00

If I want to resubmit changes, do I have to redefine them after making

  • 0

If I want to resubmit changes, do I have to redefine them after making my first submit, or can I simply call the SubmitChanges() method again as in the following code:

DB.SubmitChanges();

Thread.Sleep(1000);

DB.SubmitChanges();

Edit: The reason why I want to do this is because I have two different linq queries that handle conflicts using RefreshMode.OverwriteCurrentValues. One of the queries is more important than the other, and in order to trump the other, my best idea (and it’s not great I admit) is to just wait a while and resubmit the changes.

  • 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-15T16:16:42+00:00Added an answer on May 15, 2026 at 4:16 pm

    If DB.SubmitChanges returns without throwing an exception – it thinks that the database now has the changes. It still is tracking the “changed” values, but they are tracked as unchanged and will not be resubmitted.

    If DB.SubmitChanges throws, then it thinks that none of the changes made it to the database. In that case, the “changed” values are still tracked as changed and calling DB.SubmitChanges again will attempt to make those same changes. You may want to resolve optimistic concurrency conflicts before doing this second call.

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

Sidebar

Related Questions

want to have a Hyperlink-Button in a gridView in which I can display a
Want to run javascript function from parent window in child window Example I have
I have three pages that has forms on them. They all lead to one
I have a situation where we want to prevent the update of a table
I have a form, in whmcs that I want user to only be able
Want to attach an Event Handler/Listener to some links using the delegate() method, but
I have a controller with an Index method that has several optional parameters for
I have a form in which I want two check boxes to be required
I have a series of input forms, all of them take a different form
Want to update page after jeditable (using gem on_the_spot) has been updated. Below works

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.