Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 499 Bytes

File metadata and controls

7 lines (4 loc) · 499 Bytes

Unit of Work Pattern

A Unit of Work keeps track of everything you do during a business transaction that can affect the database. When you're done, it figures out everything that needs to be done to alter the database as a result of your work.

In the book Patterns of Enterprise Application Architecture, Martin Fowler describes as follows:

Maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems.