Unit of Work
In plain terms
A pattern tracking changes to commit them as one transaction.
Going deeper
The Unit of Work pattern collects all changes made during a business operation and commits them together, ensuring consistency. It batches writes into one transaction.
Under the hood
Coordinates with repositories; reduces round-trips and maintains transactional integrity.
Examples
ORM transactions, Entity Framework, batch commits, change tracking.
Think of it like...
Like a shopping cart that holds all your changes until one final checkout.