Skip to content

Docsite pass for 11.0.x: false statements fixed, samples in a blog domain, release notes tidy, README rules checked in CI - #331

Open
electricessence wants to merge 6 commits into
masterfrom
docs/docs-pass
Open

electricessence wants to merge 6 commits into
masterfrom
docs/docs-pass

Conversation

@electricessence

@electricessence electricessence commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Wave 2, PR 2 of 2: the docsite pass for 11.0.x and the README polish. Stacked on #330 (the link check): the base is its branch so this diff shows only this PR; retarget to master after #330 merges.

What was done

Six Sonnet reviewers (page groups: start pages, mapping, commands and shaping, async and channels, comparison pages, benchmark pages) checked every claim against the 11.0.x code and the owner's rules; I arbitrated and applied what held. False or stale statements fixed:

  • mapping: ImmutableArray has no second copy on .NET 10 and later (the netstandard builds, which .NET 8 and 9 take, copy it once); DateOnly/TimeOnly only on .NET 10 and later; Map<T>() reads through a generated reader and only the runtime map uses expression trees; the library has no attribute that renames a column (it has [NullPolicy] and [NullValue]); a bad value's exception names no member or column while the others do; OrDefault gives default for a value type.
  • async buffers: on netstandard2.0 every pooled array is cleared (Holds<T>.References is a constant true there); the parameter is clearOnReturn, not clear. async reads: the connection opens before the command executes (the text and the figure said the reverse); UNMEASURED in capitals.
  • expressive commands: the "only the last two have async terminals" claim; an unbacked byte-count claim removed; default throws InvalidOperationException; the sync Execute in an async-first page. shaping rows: a factory can return null; more than 16 parameters need a declared delegate type.
  • Dapper page: output parameters are read on the chain. how little code: Items is awaited. performance: no comparison with an older build in a current-version page.
  • getting started and the five READMEs: MSSqlClient needs .NET 10 or later on modern .NET (not .NET 8 or 9). index: it no longer says every sample is compiled (a few snippets are text).
  • benchmark pages: the provider list, the "one run per case" exception, the data-file list, ToChannelReader(singleReader: true).
  • Samples in a neutral domain: Order/OrderLine (orders, customers, stock) became Draft/PostCounts in a blog domain; the same converters, null rules and checks.
  • Release notes: the 11.0.0 section no longer has a release-candidate heading; the changes after rc.18 are the first part of the release-candidates section, which says who needs it. The 11.0.1 section already lists the dependency updates (SqlClient 8.0 behavior changes) and the meta-package (PR 329).
  • READMEs: docsite/tools/check-readmes.ps1, run by docs.yml before the link check, enforces the CONTRIBUTING-DOCS rules for the five package READMEs: banner directly under the H1 with its tagline not repeated, every image on a host nuget.org renders (list from learn.microsoft.com), no raw HTML, and one identical "The packages" section. The five READMEs already passed; the rule is now checked.

Evidence

  • Samples build: 0 warnings, 0 errors; run: 267 of 267 checks pass. DocFX: 0 warnings, 0 errors. Link check on the built site: 0 broken internal links, 0 hard 404. README check: pass. Style scan clean. Leak check clean on both commits.
  • Swarm on the diff (3 Haiku lenses: facts, tools, style; arbitrated): applied the release-history restore (the sample rename had rewritten an rc.17 note), the release-notes wording, a sample comment, the README checker fixes, and a corrected ExecuteAsync sentence. Rejected: "ImmutableArray is .NET 8 and later" (NET8_0_OR_GREATER is defined only on the net10.0/net11.0 builds; there is no net8 build).

Owner decisions, applied (PM relayed, per established owner policy)

  • Buffer first: async-buffers.md and channels-and-dataflow.md now say the buffer is the recommended way to read rows once; a stream is for stopping early or feeding a pipeline; Stream and StreamBuffered hold the connection and are the last resort.
  • One claim per number: the 14.9% (SQL Server, run rp-sql-w20, real-providers.csv) and the 11% (runs a and b of library-real.csv) each name their run and data file; no prose reconciling them (Wave 3 re-runs).
  • Orphan overview deleted: docsite/api/overview/Open.Database.Extensions.Core.md (no public types in that namespace; nothing referenced it). DocFX 0 warnings and link check 0 broken after.
  • Repetition trims applied: async-reads.md (the repeated default statements), async-buffers.md (figure numbers kept in the alt text and the Sources table only), channels-and-dataflow.md (the repeated connection-release sentences).
  • Swarm on those lines (3 Haiku lenses: facts, owner policy, style and references; arbitrated): fixed StreamBuffered described as holding the connection per row, a lost blank line, "keep the rows" for a buffer, rounded numbers that implied 10.3%, "(this run)" wording.

Still open (not changed)

  • performance.md read mode: settled by the code. Build 6a770e8 (2026-11-22, the 2026-11-23 runs) read Map<T>() with SequentialAccess (MappedQuery.Behavior: only a selector source used the default mode); the page now says so, and that Map<T>() now reads with the default mode.
  • mapping.md still says "use ToArrayAsync unless you need rows as they arrive" (compatible, not reworded).
  • Tests/.../RowMapConverterTests.cs still uses order_num (a unit test, not a doc sample).

Not covered

  • docs.yml runs for the first time with the README check on this PR.
  • Dapper behavior statements were taken as standard; benchmark numbers were not re-measured (by instruction).

🤖 Generated with Claude Code

Base automatically changed from docs/link-check to master December 6, 2026 04:22
electricessence and others added 5 commits December 5, 2026 20:24
…omain, release notes tidy, README rules checked in CI

Six reviewers (page groups against the 11.0.x code, arbitrated) found these statements false or stale; each is fixed:
- mapping: ImmutableArray has no second copy on .NET 10 and later (the netstandard builds that .NET 8 and 9 take copy it once); DateOnly and TimeOnly are handled on .NET 10 and later only; Map<T>() reads through a generated reader, the runtime map is the one built from expression trees; the library has no attribute that renames a column (it has the null attributes); a bad value's exception names no member or column, the others do; the OrDefault forms give default for a value type.
- async buffers: on netstandard2.0 every array is cleared; the parameter is clearOnReturn, not clear. async reads: the connection opens before the command executes (the text and the figure said the reverse); "UNMEASURED" in capitals removed.
- expressive commands: ExpressiveCommand has async terminals, what the last two types add is ReadAsync, ExecuteNonQueryAsync and ExecuteScalarAsync; a byte-count claim no data file backs is removed; `default` throws InvalidOperationException; one example uses the sync Execute, now ExecuteAsync; shaping rows: a factory can return null (the row stays), more than 16 parameters need a declared delegate type.
- Dapper page: output parameters are read on the chain (ExecuteOutputAsync, Output, CaptureOutput); how-little-code: Items is awaited; performance: no comparison with an older build in a current-version page.
- getting started: MSSqlClient needs .NET 10 or later on modern .NET (not .NET 8 or 9); the five READMEs say so; the index no longer says every sample is compiled (a few snippets are text).
- Benchmarks pages: the providers list, one run per case with its exception, the data-file list, ToChannelReader(singleReader: true).

The samples that used orders, customers and stock now use a blog domain (Draft, PostCounts); the samples build with 0 warnings and run 267 of 267 checks.

Release notes: the 11.0.0 section has no release-candidate heading; the changes made after rc.18 are the first part of the release-candidates section, which says who needs it.

docsite/tools/check-readmes.ps1, run by docs.yml, checks the five package READMEs: the banner under the H1 with its tagline not repeated, image hosts on nuget.org's list, no raw HTML block, and one identical "The packages" section.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- The release notes keep the rc.17 entry as it was (it names Order.OrderNum, the type of that release); the release-candidates intro and the 11.0.0 note agree.
- expressive-commands: only the last two types have ExecuteNonQueryAsync and ExecuteScalarAsync; the handler of ExecuteAsync returns a ValueTask.
- A sample comment says the name match would also find scheduled_at (it said it matched no property).
- check-readmes.ps1 reads titled and single-quoted images, rejects a relative image with its own message, ignores inline code and fenced code, treats any HTML tag but <img> as raw HTML, ends the packages section at a level 1 or 2 heading outside a fence, compares against the Core README; docs.yml runs it before the link check so a README error is not hidden by a link failure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ne cited run per number, no orphan page, fewer repeats

- async-buffers, channels-and-dataflow: the buffer is the recommended way to read rows once; a stream is for stopping early or feeding a pipeline; Stream and StreamBuffered hold the connection and are the last resort
- real-databases, library-comparison, performance: each Dapper figure names its run and data file (14.9% from run rp-sql-w20 in real-providers.csv; 11% from runs a and b of library-real.csv)
- delete docsite/api/overview/Open.Database.Extensions.Core.md: the namespace has no public types
- trim repeats in async-reads, async-buffers and channels-and-dataflow (the figure numbers stay in the alt text and the Sources table)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 2026-11-23 figures are from build 6a770e8, where Map<T>() read with SequentialAccess (MappedQuery.Behavior: only a selector source used the default mode). The page now says so and that Map<T>() now reads with the default mode, with SequentialAccess() as the opt-in.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…uteAsync in whats-new, a list in CONTRIBUTING-DOCS, the cross-build caveat on the clearing row

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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