DbContexts and Object Sets
Audience
Developers, QA and support engineers, data reviewers, implementation partners, solution architects, privacy reviewers and security reviewers.
Reference Content
Summary
Eight runtime contexts contain 58 selected lifecycle-relevant object sets. Seven are extracted service contexts and one is the compatibility application context.
Inventory
| Context | Selected objects | Migration model | Design factory |
|---|---|---|---|
| Recruitment | 11 | 5 authored migrations + snapshot | Yes |
| Employee | 6 | 2 authored migrations + snapshot | Yes |
| Compatibility application | 18 | Runtime initializer; no authored EF migration or snapshot | No |
| Payroll | 3 | 4 authored migrations + snapshot | Yes |
| Attendance | 4 | 3 authored migrations + snapshot | Yes |
| Leave | 3 | 3 authored migrations + snapshot | Yes |
| Asset | 6 | 1 authored migration + snapshot | Yes |
| Notification | 7 | 1 authored migration + snapshot | Yes |
| Total | 58 | 19 authored migrations + 7 snapshots | 7 |
Selection notes
The full contexts also contain unrelated domain objects. This documentation selects objects that store onboarding/offboarding facts, downstream readiness, audit/history, notification delivery, event publication or idempotency. The schema reference lists all 58 exactly once.
Runtime topology
Exclusions
The gateway has no lifecycle persistence context. Unrelated payroll calculations, attendance transactions, leave requests, recruitment requisitions/interviews and asset documents are outside the 58-object selection.
Requires confirmation
Unless explicitly confirmed above, production migration governance, rollback, reconciliation, retention, privacy, performance, concurrency and operational ownership require confirmation.
Source References
microservices/src/recruitment-service/Infrastructure/RecruitmentDbContext.csmicroservices/src/employee-service/Infrastructure/EmployeeDbContext.csData/AppDbContext.cs
Related Articles
See Also
Keywords
- Onboarding database
- Offboarding database
- Lifecycle persistence
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Review cycle: Quarterly