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
exercise to refactor subclass to dto. also contains spike for extract method refactoring with Roslyn.
360 KiB
Languages
C#
97.2%
Shell
1.2%
Mermaid
1%
PowerShell
0.6%