← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

46 原书第06章|Repositories

核验版本的摘录快照 · 导入于 2026-11-14T03:12:56.391Z

providing an easily manipulated, dummy in-memory strategy. 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. Typically teams add a

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch06lev1sec3.html

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce