Repository navigation
Docs: one wording per fact for the default value, the transaction and the token - #293
Merged
Merged
Conversation
… the token The same fact was written several ways in the doc comments, so the wordings could drift and the rendered pages repeated them. - A default value that is bound to nothing: MappedQuery, MappedDbQuery, DbQueryCall and DbQueryUsing now include the one `default-bound` text (was: "This is default.", "A default value was not created by Map.", "This is a default value, which is bound to nothing."). The streams that also refuse a second enumeration share `default-or-second`. - "The transaction has no connection." is one `transaction-no-connection` text for the Core and SQL Server CreateCommand overloads. - The cancellation token parameter is one of four texts: `token-read`, `token-read-throws`, `token-pass` (Channel and Dataflow, which include Core's Mapped.docs.xml) and `token-call`. Comments only: no code, no behavior and no public member changes. 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.
Docs only: the same fact was written several ways in the XML doc comments (the default value, the transaction without a connection, the cancellation token). Each now has one text in the matching
*.docs.xml, pulled in with<include>, so the wordings cannot drift and the rendered pages say each thing one way.What is shared
MappedQuery,MappedDbQuery,DbQueryCallandDbQueryUsinginclude the existingdefault-boundtext. Before, the same exception was documented as "This is default.", "A default value was not created by Map." and "This is a default value, which is bound to nothing." The three streams that also refuse a second enumeration share a newdefault-or-secondtext.transaction-no-connectiontext for the sixCreateCommandoverloads (Core and SQL Server).Mapped.docs.xml:token-read("The token that cancels the read."),token-read-throws(the stream form that adds theOperationCanceledException),token-pass(the pass of a channel or dataflow pump) andtoken-call(the whole call). Channel and Dataflow include them from../Core/Mapped.docs.xml.Kept distinct on purpose
BoundCallextensions name the call (<paramref name="call"/> is a default value...), andConnectionScopeis a scope, not a query: those say something different.SqlClientproject keep their own token text.Checked
<include>warning.dotnet formatstyle and analyzers 0 findings on all projects, DocFX 0 warnings.🤖 Generated with Claude Code