Skip to content

Add Identity Map application architecture pattern #239

@JerrettDavis

Description

@JerrettDavis

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions