Ricardo

31%
Flag icon
Leave transaction control to the client. Although the REPOSITORY will insert into and delete from the database, it will ordinarily not commit anything. It is tempting to commit after saving, for example, but the client presumably has the context to correctly initiate and commit units of work. Transaction management will be simpler if the REPOSITORY keeps its hands off.
Domain-Driven Design: Tackling Complexity in the Heart of Software
Rate this book
Clear rating
Open Preview