The unit of work design pattern prescribes a way to make business logic transactional, i.e. if something fails when carrying out a request, undo all previous changes that happened within the request.
The unit of work design pattern prescribes a way to make business logic transactional, i.e. if something fails when carrying out a request, undo all previous changes that happened within the request.