Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Concurrency Problem

Concurrency Problem

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GetOn GetGoing
    wrote on last edited by
    #1

    Hi To All How do u will handle concurrency in dotnet? For Example: If two users attempting to modify the same records. How dotnet will take care abt this? I mean how one user can check wheather the change to that particular record has been made Praveen

    M J 2 Replies Last reply
    0
    • G GetOn GetGoing

      Hi To All How do u will handle concurrency in dotnet? For Example: If two users attempting to modify the same records. How dotnet will take care abt this? I mean how one user can check wheather the change to that particular record has been made Praveen

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      It handld based on CultureInfo.NumberFormat of OS on user computer. IF you want everybody set the same format you should set this property in your apilcation. Mazy "Improvisation is the touchstone of wit." - Molière

      1 Reply Last reply
      0
      • G GetOn GetGoing

        Hi To All How do u will handle concurrency in dotnet? For Example: If two users attempting to modify the same records. How dotnet will take care abt this? I mean how one user can check wheather the change to that particular record has been made Praveen

        J Offline
        J Offline
        John Kuhn
        wrote on last edited by
        #3

        I think that Mazy missed the point of your question... Concurrency sounds a lot like Currency ;). Anyway, in order to handle concurrency (two users trying to update the same record at the same time) you could do a couple of things: * Use SqlTransactions and to execute your commands, stored procs, etc. in the context of a transaction. Handle exceptions that are generated. * Rely on the "built-in" concurrency of ADO.NET, which will through a DBConcurrencyException if there is more than one user trying to update the same record(s) at the same time. Seach for "concurrency, ADO.NET concurrency control" in the Visual Studio.NET documentation.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups