Skip to main content

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

ContextSelected objectsMigration modelDesign factory
Recruitment115 authored migrations + snapshotYes
Employee62 authored migrations + snapshotYes
Compatibility application18Runtime initializer; no authored EF migration or snapshotNo
Payroll34 authored migrations + snapshotYes
Attendance43 authored migrations + snapshotYes
Leave33 authored migrations + snapshotYes
Asset61 authored migration + snapshotYes
Notification71 authored migration + snapshotYes
Total5819 authored migrations + 7 snapshots7

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.cs
  • microservices/src/employee-service/Infrastructure/EmployeeDbContext.cs
  • Data/AppDbContext.cs

See Also

Keywords

  • Onboarding database
  • Offboarding database
  • Lifecycle persistence

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Review cycle: Quarterly