Skip to content

docs: fix EventProjection enrichment sample to use method conventions#4739

Merged
jeremydmiller merged 1 commit into
masterfrom
docs/v9-projection-nuance
Jun 14, 2026
Merged

docs: fix EventProjection enrichment sample to use method conventions#4739
jeremydmiller merged 1 commit into
masterfrom
docs/v9-projection-nuance

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

What

The "Basic Usage" sample under [event projections / EnrichEventsAsync] used the inline-lambda Project<TaskAssigned>((e, ops) => {...}) constructor form — which the same page's own warning (top of the Method Conventions section) states was removed in Marten 9.0.

Fix

Rewrote the hand-written sample as a partial class with a public void Project(TaskAssigned e, IDocumentOperations ops) method convention, matching the Project(...) convention shown elsewhere on the same page (and the migration guidance in the warning).

Note

A few related items from the same audit need a design decision and are intentionally not included here: the TrackedEventProjection source sample is a NotImplementedException("Redo") stub that needs a real EnableDocumentTrackingByIdentity rewrite; the compiled-query AsJson() prose vs. sample needs an API-behavior confirmation; and the command_handler_workflow "Async lifecycle" bullet needs the revision-tracking nuance spelled out.

🤖 Generated with Claude Code

The 'Basic Usage' sample for EnrichEventsAsync used the inline-lambda
Project<TEvent>(action) constructor form, which the same page's own
warning notes was removed in Marten 9.0. Rewrote it as a partial class
with a Project(TaskAssigned, IDocumentOperations) method convention,
matching the conventions shown elsewhere on the page.
@jeremydmiller jeremydmiller merged commit 7994698 into master Jun 14, 2026
1 check passed
@jeremydmiller jeremydmiller deleted the docs/v9-projection-nuance branch June 14, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant