Repository and Unit of Work
Summary
The repository loads aggregates with receipts, supports compatibility identity and query composition, and tracks reads by default. Unit of work delegates to DbContext; save commits tracked state, evidence, and mapped outbox intent. Workflow start spans multiple saves and an external call.
Audience
Backend and frontend developers, QA, architects, DevOps, support, and new engineers.
Source References
microservices/src/expense-service/Infrastructure/Persistence.cs
Related Articles
See Also
Keywords
- Expense technical
- Infrastructure/Persistence.cs
Revision Information
- Status: Draft
- Last reviewed: 2026-07-16
- Review cycle: Quarterly