Repository navigation
Version 11.0.0-rc.18 - #320
Merged
Merged
Conversation
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>
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.
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".
PrepareCommand(TConnection)andConnectionProviderofExpressiveCommandBase(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 forAddReturnParameteris no name; more exception messages say what to do;CreateCommandon 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;UsingAsyncon a factory or function disposes asynchronously; the parameter name of the exception fromAsGeneric(IDbConnectionPool)isconnectionPool. The migration page lists the two removed members.PublicAPI.Unshipped.txtmoves toPublicAPI.Shipped.txtin 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.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 (
NotNegativenow says to pass zero or more), the guard that became an assert on a private constructor, and theScalarValuehelper 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):
Open.Database.Extensions.SqlClientpackage in favour ofOpen.Database.Extensions.MSSqlClient.Open.Database.Extensionsmeta-package (nuget.org has nothing after 9.0.3).--prereleasefrom the READMEs andgetting-started.md.🤖 Generated with Claude Code