Skip to content

Version 11.0.0-rc.18 - #320

Merged
electricessence merged 8 commits into
masterfrom
release/11.0.0-rc.18
Dec 4, 2026
Merged

electricessence merged 8 commits into
masterfrom
release/11.0.0-rc.18

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

Version 11.0.0-rc.18. The release-candidate suffix moves from rc.17 to rc.18 in the build properties and at the top of the release notes, the notes for what changed since rc.17 are written as a user of the packages sees them, and the public API baseline moves from unshipped to shipped. Alongside, a text command's messages about parameter names stop saying "The procedure".

  • Release notes ("Changes since rc.17", nine entries, present tense). Removed: the protected PrepareCommand(TConnection) and ConnectionProvider of ExpressiveCommandBase (a subclass that called one no longer compiles; it keeps its own reference to what it passed to the base constructor). Changed: the parameter names of a procedure with a schema in its name are read once per server and database for the whole process (up to 1024 procedures; a connection that reports no server or no database is not shared); a blank name for AddReturnParameter is no name; more exception messages say what to do; CreateCommand on a transaction that has no connection checks the connection before the text. Fixed: commands from one factory, pool or function share their parameter names; a parameter ordinal that is not a number; UsingAsync on a factory or function disposes asynchronously; the parameter name of the exception from AsGeneric(IDbConnectionPool) is connectionPool. The migration page lists the two removed members.
  • Public API baseline. Every line of PublicAPI.Unshipped.txt moves to PublicAPI.Shipped.txt in Core (925 to 1021 lines: 130 added, 34 removed, each *REMOVED* line matched) and MSSqlClient (82 to 80); both unshipped files hold only #nullable enable. Core and MSSqlClient are the only projects with these files.
  • A text command no longer says "The procedure". The ambiguity, no-match and collision messages, and the two output-binding messages, say "It declares" (or "'' declares:") for a command of type Text; a stored procedure's text is word for word as before. One method, ParameterNameMessages.DeclaresWords, picks the lead-in, and each message has a test that pins the text-command wording.

Review. Release swarm over the whole published source diff from rc.17 (four lenses: public surface against the notes, run-time behavior and the notes' claims, correctness including the shared parameter-name table, the baseline move; plus a second correctness pass on the hunks the first did not reach): 0 blocking. What it raised was arbitrated: an intended message change (NotNegative now says to pass zero or more), the guard that became an assert on a private constructor, and the ScalarValue helper that no subclass outside the assembly could reach.

Verification: solution Release and Debug builds 0 warnings, 0 errors, 0 public API analyzer warnings; Visual Studio's MSBuild on the whole solution 0 errors; Core.Tests Release 16231 passed, Debug passed with 16 self-skipped; 267 sample checks; style and analyzers at info 0 findings in all 14 projects; Roslyn and Roslynator scans on this tree 0 actionable; docfx 0 warnings; leak scan and style scan clean.

For the owner at publish (not part of this change):

  • nuget.org: deprecate the 10.x Open.Database.Extensions.SqlClient package in favour of Open.Database.Extensions.MSSqlClient.
  • The release run must never push the Open.Database.Extensions meta-package (nuget.org has nothing after 9.0.3).
  • GA only: drop --prerelease from the READMEs and getting-started.md.

🤖 Generated with Claude Code

electricessence and others added 8 commits December 4, 2026 10:52
The release-candidate suffix moves from rc.17 to rc.18, in the build
properties and at the top of the release notes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The "Changes since rc.17" section is brought in line with the code at the
cut: each change is one labeled bullet in present tense, with no internal
names.

- Removed: the protected PrepareCommand(TConnection) and ConnectionProvider
  of ExpressiveCommandBase, with what a subclass does instead. The migration
  page lists them with the other removed members.
- Changed: the parameter names of a schema-qualified procedure are read once
  per server and database. The note now says what is shared (also the modes
  and scales of the output-parameter check), that the bound is 1024
  procedures, that a source that reports no server or database is not
  shared, and what a user must know: every login of the process sees the
  names, a server is told by the name it reports, test fakes need server
  names of their own.
- Fixed: commands from one factory, pool or function share their names; a
  parameter ordinal that is not a number; UsingAsync disposes
  asynchronously; the ParamName of AsGeneric(IDbConnectionPool).
- Changed: AddReturnParameter treats a blank name as no name; more
  exception messages say the fix (blank command, blank parameter name,
  negative count or index, a type with no public constructor, a mapping with
  no property name, parameter-name collisions, a name that cannot be derived,
  a stream enumerated twice); a transaction with no connection is reported
  before a blank command text.

The first line of the release notes names rc.18. Docs only; no code change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Every line of PublicAPI.Unshipped.txt of Core and MSSqlClient moves into
PublicAPI.Shipped.txt, as in earlier releases: added lines go at the end of
Shipped in their order, and each *REMOVED* line deletes the shipped line it
names and is not copied. Unshipped keeps only the nullable header.

- Core: 925 shipped lines before, 1021 after (130 added, 34 removed).
- MSSqlClient: 82 shipped lines before, 80 after (none added, 2 removed).

No code change; the analyzer sees the same API, so the build has no
RS0016, RS0017, RS0025 or RS0026.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e procedure declares"

ParameterNameMessages.Ambiguous wrote "The procedure declares" whatever the command was, so
an ambiguous parameter name in a SQL text read as if the text were a procedure. Ambiguous
now takes the words before the declared names, as NoMatch does, and the match passes them
down: a stored procedure keeps "The procedure declares", a text command and a DbQuery
definition (as in its no-match message) say "It declares". The message of a stored
procedure is word for word as before. SqlTextDerivedNamesTests pins the text-command message.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A command of Type Text no longer says "The procedure declares" in the message of an argument
that matches none of its parameters: ExpressiveCommandBase passes the words for the command's
type to both the match and the no-match message, so the two agree. A stored procedure keeps
"The procedure declares", word for word. SqlTextDerivedNamesTests pins the text-command message.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…of a text command

A command of Type Text says "'<text>' declares: ..." in the message of two parameters that
resolve to one name, the wording a DbQuery definition already uses, so none of the three
messages of a text command (ambiguous, no match, collision) calls its SQL a procedure. A stored
procedure keeps "The procedure '<name>' declares:", word for word. SqlTextDerivedNamesTests pins
the text-command message.

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

OutputBinding.Find and NameSet.MatchName passed no words for the names a command declares, so an
output member or a named output that fits two parameters of a text command said "The procedure
declares". ParameterNameMessages.DeclaresWords(type) gives the words for a command type ("It
declares" for text, "The procedure declares" otherwise, word for word as before), and
ExpressiveCommandBase, OutputBinding and NameSet.MatchName use it. Two tests in OutputParameterTests
pin the model-member path and the named-output path on a text command.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 32b48f3 into master Dec 4, 2026
9 checks passed
@electricessence
electricessence deleted the release/11.0.0-rc.18 branch December 4, 2026 19:58
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