Skip to content

Docs: a definition is a stored field and a per-call Using, in a class that compiles - #294

Merged
electricessence merged 1 commit into
masterfrom
docs/definition-first-snippets
Dec 2, 2026
Merged

electricessence merged 1 commit into
masterfrom
docs/definition-first-snippets

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

Follow-up to #292, which merged before this fix was pushed.

The README snippets put a static readonly query field between top-level locals and the call, which does not compile as one file. Each now shows a class: the query as a stored field, and a method that binds the source and the values (vertical chain). The ad hoc form follows, with its own locals.

  • README.md and the Core, Channel and Dataflow package pages.
  • expressive-commands.md: the two DbQuery.Procedure definitions are class members, not statements after a field.
  • mapping.md: the AnyAsync and the CancelOnEarlyStop examples declared a DbQuery inline at the call. Each is now a stored field plus a per-call Using.

Checked

  • Every new snippet was compiled in the samples project (a temporary file, removed before the commit): the class forms, the channel and dataflow members, the two procedure definitions and the two mapping.md members.
  • Gate on the same diff, before it was rebased onto the merged master: Release 15,759 (one allocation probe flaked on the first run and passed on the rerun), Debug 15,738 with 16 skipped, samples 255, VS MSBuild 0 errors, format 28/28 clean, DocFX 0 warnings. The diff is Markdown only.

🤖 Generated with Claude Code

… that compiles

The README snippets put a static field between top-level locals and the
call, which does not compile as one file. Each now shows a class: the
query as a static readonly field, and a method that binds the source and
the values (vertical chain), then the ad hoc form with its own locals.

- README.md and the Core, Channel and Dataflow package pages.
- expressive-commands.md: the two DbQuery.Procedure definitions are class
  members, not statements after a field.
- mapping.md: the Any and the early-stop examples declared a DbQuery
  inline at the call; each is now a stored field plus a per-call Using.

Every new snippet was compiled in the samples project before it was
written down.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 962e080 into master Dec 2, 2026
9 checks passed
@electricessence
electricessence deleted the docs/definition-first-snippets branch December 2, 2026 15:11
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