Repository navigation
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
Conversation
…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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ExecuteReaderoverloads in Core and the two in MSSqlClient no longer claimbehaviordefaults toCommandBehavior.Default(they have no default; the sync overloads keep the sentence).ToPooledBufferStreamno longer says the connection is freed before the consumer sees a row: it is released when the read ends.bufferedtext is true for the async terminals ("before the result is available").ToChannelandToTargetBlock: thecompleteoverloads have their own summary and remarks (the channel or block is completed or faulted, a cancel included); the others say the returnedValueTask<long>throws from the await.stallTimeouton the four holding-connection overloads namesStreamBufferedwith a buffer of one row, notStream; the article sentence that saidStreamis fixed the same way.MappedReader<T>andMappedTable<T>had no summary (empty hover); they now have one.AddParamson a definition: the members are read when the query runs; the names are the real names when they are known.GetOrdinalMappingnull cases,CloseConnectionwording, 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. TheStream/StreamBuffered/ToPooledStreamtable 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
ValueTask<long>wording and the link to Terminals; async-buffers: theBufferreference 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);
SetTimeoutsays when the procedure-name lookup is bounded by it (only a SQL Server command; never aDbQuery); the 4-argumentAddParameterremarks point an unnamed return value toAddParameterType.Not applied, with the reason
ExecuteOutputAsync; the command's default timeout is already stated onTimeout; the Dataflow wording for K55 was already accurate.ExecuteReturnand return-value capture remarks.UNVERIFIED items
Checked against the code; text was changed only where the claim was false.
AsyncReadsread-through, the scalar no-rowValueMappingException,Using(DbTransaction)needing an open connection, the capture of the output metadata rules, the procedure-name lookup remarks (multi-part names,Exception.Data["Procedure"]),AnyAsyncreading no column, theCancelOnEarlyStoprefusal list.AddParamson a definition (the members are read when the query runs; the names are the real names when known).NullActionpolicy-override rules. Their text was not touched by this PR.ToDictionaryAsyncwas confirmed by readingChunkChain.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 formatstyle 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 onStreamBuffered, theCancelOnEarlyStopthrow timing for streams, theSetTimeoutscope 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