title: WCF: Concurrent access to a common database from multiple Web Services
body: <p>I'm currently developing multiple Web Services that need to access a common database.</p>
  
  <p>I would like to use Entity Framework in order to interact with the DB.</p>
  
  <p>What would be the best course of action in order to avoid possible concurrent operations from occurring ?</p>
  
  <p>For example, I have a Web Service that manages User details in the DB. How can I avoid scenarios such as one Client deletes a User while another tries to update it ?</p>
  
  <p>Furthermore, there's also the possibility of multiple Web Services having to share access to the same tables in the DB, which also brings concurrence problems.</p>
  
  <p>Thanks</p>
  
  <p>Note: I haven't decided yet if the Web Services themselves will be Singletons, but it might be a possibility. I have yet to determine if this will be beneficial...</p>