I have an SQL Database with a table that I would like to lock. I'm using Entity Framework. Basically, there are a number of processes that each want to write to the database concurrently. Each of them wants to update a row in some table. However, I want only one of them to be able to do this at the same time.
Is there a way of locking an entire table, such as to prevent anyone from putting new rows or updating rows?
Thanks, Christian