Used the ORM context and model configuration to add price-book entities, versioned close records, indexes, chunked lookups, and duplicate-key handling for replayed usage events.
- What worked
- Model-first entity and index configuration mapped cleanly to versioned closes and idempotent writes. Database-side aggregation avoided loading large volumes into memory.