c4bfc14f32a1bcf6075877bdfa362db3c9c5aea5
Refactor After.DbContext from a single flat _tracked dictionary into: - Per-type shadow collections (_clients, _orders) mirroring EF Core's Set<T> pattern, each holding type-specific Shadow subtypes - Public Clients/Orders properties as read-only typed table accessors - Generic Set<T>() accessor for any Shadow subtype - Find<T>(Func<T, bool>) query method on the context instance Internal details: - Shadow base class with Id + DbContext back-reference (internal set) - ClientShadow / OrderShadow concrete subtypes per entity - _byRef Dictionary<object, Shadow> for fast domain→shadow lookup - SaveChanges() persists all tracked entities at once
Description
Starting point for participants to work with explicit mapping instead of ActiveRecord
384 KiB
Languages
C#
94.7%
Shell
5.3%