Skip to content

Docs: one wording per fact for the default value, the transaction and the token - #293

Merged
electricessence merged 1 commit into
masterfrom
docs/one-wording
Dec 2, 2026
Merged

electricessence merged 1 commit into
masterfrom
docs/one-wording

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

Docs only: the same fact was written several ways in the XML doc comments (the default value, the transaction without a connection, the cancellation token). Each now has one text in the matching *.docs.xml, pulled in with <include>, so the wordings cannot drift and the rendered pages say each thing one way.

What is shared

  • A default value, bound to nothing. MappedQuery, MappedDbQuery, DbQueryCall and DbQueryUsing include the existing default-bound text. Before, the same exception was documented as "This is default.", "A default value was not created by Map." and "This is a default value, which is bound to nothing." The three streams that also refuse a second enumeration share a new default-or-second text.
  • "The transaction has no connection." is one transaction-no-connection text for the six CreateCommand overloads (Core and SQL Server).
  • The cancellation token parameter is one of four texts in Mapped.docs.xml: token-read ("The token that cancels the read."), token-read-throws (the stream form that adds the OperationCanceledException), token-pass (the pass of a channel or dataflow pump) and token-call (the whole call). Channel and Dataflow include them from ../Core/Mapped.docs.xml.

Kept distinct on purpose

  • The BoundCall extensions name the call (<paramref name="call"/> is a default value...), and ConnectionScope is a scope, not a query: those say something different.
  • The SQL Server transaction helpers in the unpublished SqlClient project keep their own token text.
  • Null-argument exceptions name different parameters in each member, so they stay inline.

Checked

  • The built XML docs of Core, Channel, Dataflow and MSSqlClient contain the shared text at every member that includes it, and no <include> warning.
  • Gate on the commit: Release 15,759 and Debug 15,738 tests pass (16 skipped), samples 231 checks, VS MSBuild 0 errors, dotnet format style and analyzers 0 findings on all projects, DocFX 0 warnings.

🤖 Generated with Claude Code

… the token

The same fact was written several ways in the doc comments, so the
wordings could drift and the rendered pages repeated them.

- A default value that is bound to nothing: MappedQuery, MappedDbQuery,
  DbQueryCall and DbQueryUsing now include the one `default-bound` text
  (was: "This is default.", "A default value was not created by Map.",
  "This is a default value, which is bound to nothing."). The streams
  that also refuse a second enumeration share `default-or-second`.
- "The transaction has no connection." is one `transaction-no-connection`
  text for the Core and SQL Server CreateCommand overloads.
- The cancellation token parameter is one of four texts: `token-read`,
  `token-read-throws`, `token-pass` (Channel and Dataflow, which include
  Core's Mapped.docs.xml) and `token-call`.

Comments only: no code, no behavior and no public member changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 77922b3 into master Dec 2, 2026
9 checks passed
@electricessence
electricessence deleted the docs/one-wording branch December 2, 2026 14:49
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