Skip to content

Shorten the shipped hover docs to what a member does and its traps, link the articles, and fix the statements that were false - #322

Merged
electricessence merged 2 commits into
masterfrom
docs/xml-hover-pass
Dec 5, 2026
Merged

electricessence merged 2 commits into
masterfrom
docs/xml-hover-pass

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

What

The XML docs ship in the four published packages (Core, MSSqlClient, Channel, Dataflow), so this pass fixes the hover statements that were false and cuts topic-sized hover text down to what a member does, its traps and a link to the article that holds the rest. Docs only: no code, signature or behavior changes. It follows the pre-GA review of the shipped docs (findings K1-K55).

False statements fixed

  • The six async ExecuteReader overloads in Core and the two in MSSqlClient no longer claim behavior defaults to CommandBehavior.Default (they have no default; the sync overloads keep the sentence).
  • ToPooledBufferStream no longer says the connection is freed before the consumer sees a row: it is released when the read ends.
  • The buffered text is true for the async terminals ("before the result is available").
  • ToChannel and ToTargetBlock: the complete overloads have their own summary and remarks (the channel or block is completed or faulted, a cancel included); the others say the returned ValueTask<long> throws from the await.
  • stallTimeout on the four holding-connection overloads names StreamBuffered with a buffer of one row, not Stream; the article sentence that said Stream is fixed the same way.
  • Ten synchronous terminals each on MappedReader<T> and MappedTable<T> had no summary (empty hover); they now have one.
  • AddParams on a definition: the members are read when the query runs; the names are the real names when they are known.
  • Smaller accuracy fixes: skip/take view return types, GetOrdinalMapping null cases, CloseConnection wording, a null key in the async dictionary terminals.

Shortened (summary + traps + link)

Map, CancelOnEarlyStop, SingleResult, UsePool, the shared pooled-memory node, PooledBuffer<T>, RowMap<T>, NullPolicy, MappedDbQuery<T>, ConnectionScope<T>, the reader helpers' held-connection note, the transaction helpers, the output-parameter and capture remarks, AddParam, ExecuteOutputAsync, SequentialAccess, ToChannel, ToTargetBlock. The Stream / StreamBuffered / ToPooledStream table is gone from the hovers (it stays in the Terminals article). Numbers, compiler and target-framework mechanics and history wording are out of the hovers. Dead shared doc nodes are removed.

Docsite written first

  • foundation: a Connection scopes section (what disposing does per source, the copy and deconstruct traps, a default scope); the held-connection explanation under reader and command helpers.
  • expressive-commands: the per-call switch rule for a mapped definition.
  • channels-and-dataflow: ValueTask<long> wording and the link to Terminals; async-buffers: the Buffer reference removed; expressive-commands: the SQL Server error for a member on a parameter that is not OUTPUT.

Also in this PR, asked for during the bug hunt: the factory and pool docs say the factory or pool must return a connection (null is not supported); SetTimeout says when the procedure-name lookup is bounded by it (only a SQL Server command; never a DbQuery); the 4-argument AddParameter remarks point an unnamed return value to AddParameterType.

Not applied, with the reason

  • K23: the sample lived in remarks that were cut; no other occurrence.
  • K32 (partly): the class-remarks sentence on how written names resolve is kept, because the article does not cover it; only the rationale clause was cut.
  • K30, K34, K55 (partly): the datetime, decimal-shape and size paragraphs left ExecuteOutputAsync; the command's default timeout is already stated on Timeout; the Dataflow wording for K55 was already accurate.
  • Left for the PR that owns them: the ExecuteReturn and return-value capture remarks.
  • A1-4 wording: not in this PR.

UNVERIFIED items

Checked against the code; text was changed only where the claim was false.

  • Confirmed true, text unchanged: AsyncReads read-through, the scalar no-row ValueMappingException, Using(DbTransaction) needing an open connection, the capture of the output metadata rules, the procedure-name lookup remarks (multi-part names, Exception.Data["Procedure"]), AnyAsync reading no column, the CancelOnEarlyStop refusal list.
  • False and fixed: AddParams on a definition (the members are read when the query runs; the names are the real names when known).
  • Not changed, not fully provable from code (server behavior, or beyond the review budget): the decimal-rounding rationale, the stall timeout during a capture read-through, the same-name check between two captures, the NullAction policy-override rules. Their text was not touched by this PR.
  • The null key in ToDictionaryAsync was confirmed by reading ChunkChain.ToDictionary (Dictionary.Add), not by running it.

Checks

Gate on the merged head: Release and Debug builds 0 warnings, Core.Tests Release and Debug pass, 267 samples, VS MSBuild, dotnet format style and analyzers 0 findings on every project, docfx 0 warnings. Style scan, leak check clean. Roslyn (0 actionable) and Roslynator (0 findings) scans clean. Swarm (accuracy and owner-rules lenses over four slices, arbitrated): the false article sentence on StreamBuffered, the CancelOnEarlyStop throw timing for streams, the SetTimeout scope and the 137/8162 note were fixed; the transaction dispose-order rationale (a code comment), the TFM note, the K41 and K40 wording were left as the review specified.

🤖 Generated with Claude Code

electricessence and others added 2 commits December 5, 2026 06:36
…its traps, link the articles for the rest, and fix the statements that were false

The XML docs ship in the packages, so a hover that is wrong or that carries a whole article is worse than a short one. This is docs only; no code changes.

False statements fixed:
- The async ExecuteReader overloads no longer say behavior defaults to CommandBehavior.Default (they have no default), in Core and in the SQL Server package.
- ToPooledBufferStream no longer says the connection is freed before the consumer sees a row; it is released when the read ends.
- The buffered terminals no longer say the rows are buffered before the call returns.
- ToChannel and ToTargetBlock no longer say the channel or block is left as it was for complete: true, and name the returned ValueTask<long>.
- stallTimeout on the holding-connection overloads names StreamBuffered with a buffer of one row, not Stream.
- The ten synchronous terminals on the reader and table views now have summaries, so their hover is no longer empty.

Shortened to a summary, the traps and an article link: the Map, CancelOnEarlyStop, SingleResult, UsePool, pooled-memory, PooledBuffer, RowMap, NullPolicy, MappedDbQuery, ConnectionScope, reader-helper, transaction, output-parameter and name-matching remarks. The Stream, StreamBuffered and ToPooledStream comparison table is removed from the hovers; it stays in the Terminals article. Dead shared doc nodes are removed.

Docsite: a Connection scopes section in the foundation article, the held-connection explanation under reader and command helpers, the per-call switch rule for a mapped definition, and the Terminals link and ValueTask<long> wording in the channels article.

The factory and pool docs say the factory or pool must return a connection (null is not supported). SetTimeout says when the procedure-name lookup is bounded by it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit b6045ae into master Dec 5, 2026
9 checks passed
@electricessence
electricessence deleted the docs/xml-hover-pass branch December 5, 2026 16:06
electricessence added a commit that referenced this pull request Dec 5, 2026
…ndidate wording, and public API tracking for Channel and Dataflow (#324)

## What

Version 11.0.0: the version, the docs for a final release, public API tracking for two more packages, and one small code cleanup. No API change.

- **Version.** `Source/Directory.Build.props` no longer sets a prerelease suffix: a Release build is `11.0.0` (Debug stays `11.0.0-debug`).
- **Release notes.** `docsite/articles/release-notes.md` opens with `## Version 11.0.0` and a "Changes since rc.18" section: the return code on a text command (Core runs it, the SQL Server command refuses it, `ExecuteReturnAsync<T>()` refuses at the call), `MatchingOrdinals` taking the first column of a duplicated name, and the three fixes of the final consistency pass (the return direction in `AddParameter`, a canceled parameter-name lookup, a completed transaction). The release-candidate history stays below it. The docs-only change (#322) has no bullet.
- **No release-candidate wording.** `--prerelease` is gone from the root README, the four package READMEs and `getting-started.md`; "Version 11 is a release candidate" is gone from the README and the docsite home page. `whats-new-11.md` points to the release notes for the order of changes, and its `EnableAsyncRead(bool)` row names only what it maps to (`UseAsyncRead` and `useReadAsync` still exist).
- **Channel and Dataflow track their public API** (`Microsoft.CodeAnalysis.PublicApiAnalyzers`, as Core and MSSqlClient do): `PublicAPI.Shipped.txt` holds today's surface (Channel 17 entries, Dataflow 7), `PublicAPI.Unshipped.txt` is empty. Both build with 0 warnings.
- **`MatchingOrdinals`**: drops an `else` after a `return` (owner request; no behavior change).

## Checks (head f3df6d1)

- Gate: Release and Debug builds 0 warnings, Core.Tests net11.0 Release 16280 passed (Debug 16259 passed, 16 skipped), VS MSBuild 0 errors, `dotnet format` style and analyzers 0 findings, samples pass, docfx 0 warnings.
- Roslyn scan: 0 actionable. Roslynator: 0 findings on every project. Style scan: clean. Leak check over the whole diff and messages: clean.
- Swarm (haiku lenses, arbitrated): the wording of the user-facing docs and the version evaluation (Release 11.0.0, Debug 11.0.0-debug). Applied earlier: two migration-guide fixes. Declined: naming the SQL Server package in the first-query tutorial (it runs on SQLite; the package table names MSSqlClient).

## Not changed

Mentions of release-candidate builds that are measurement provenance, not guidance: `Benchmarks/RESULTS.md`, `docsite/articles/benchmarks/pooling-and-clearing.md`, `docsite/perf-data/*`. `Source/SqlClient` and the `Open.Database.Extensions` meta-package are not part of this PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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