New answers tagged unit-of-work
In general a unit of work corresponds with a database transaction. So from that perspective: BEGIN TRANSACTION -- do stuff COMMIT TRANSACTION Databases are very advanced with how they handle this. Any data you read after the BEGIN TRANSACTION statement is "locked" to any other thread (note that you can override this behavior in your SELECT statement ...
Top 50 recent answers are included