PatternKit should add a first-class Identity Map pattern slice for preserving object identity within a unit of work or request scope.
Sources:
Scope:
- Fluent runtime path for keyed identity maps with get/add/get-or-add and scoped lifetime semantics.
- Source-generated path for attributed identity keys or typed identity map factories.
- IServiceCollection integration for scoped identity maps.
- Real-world example around repository/unit-of-work object reuse.
- Documentation, user guide, generator docs, and catalog entries.
- TinyBDD coverage for identity reuse, duplicate key behavior, scoped DI, integration with repository example, and generated path.
Done when CI, docs, CodeQL, and coverage are green on main.
PatternKit should add a first-class Identity Map pattern slice for preserving object identity within a unit of work or request scope.
Sources:
Scope:
Done when CI, docs, CodeQL, and coverage are green on main.