Skip to content

[7.0] Fix API docs#4119

Closed
paulmedynski wants to merge 1 commit intorelease/7.0from
cherry-pick/7.0/4084
Closed

[7.0] Fix API docs#4119
paulmedynski wants to merge 1 commit intorelease/7.0from
cherry-pick/7.0/4084

Conversation

@paulmedynski
Copy link
Copy Markdown
Contributor

@paulmedynski paulmedynski commented Mar 31, 2026

Cherry-pick of #4084 to release/7.0


Original PR Description

Description

This PR attempts to fix the issues seen in API docs in this PR

Issues

https://github.com/dotnet/sqlclient-api-docs/pull/94

Testing

Changes validated in this PR

Copilot AI review requested due to automatic review settings March 31, 2026 19:30
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Mar 31, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Cherry-pick to release/7.0 that corrects API documentation snippet markup to resolve issues surfaced by the external sqlclient-api-docs build.

Changes:

  • Fixes doc references for generic APIs (e.g., SqlVector<T> and retry-logic generic methods) to use the correct generic identifier formats.
  • Replaces incorrect method references (OnRowUpdating/OnRowUpdated) with the corresponding event references (RowUpdating/RowUpdated) in SqlDataAdapter docs.
  • Cleans up whitespace/trailing-space formatting across multiple snippet blocks to stabilize doc rendering.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
doc/snippets/Microsoft.Data.SqlClient/SqlDataReader.xml Updates GetSqlVector documentation to reference the generic SqlVector<T> type correctly; minor formatting cleanups.
doc/snippets/Microsoft.Data.SqlClient/SqlDataAdapter.xml Fixes incorrect references to RowUpdated/RowUpdating as protected methods by pointing to the public events; whitespace cleanup.
doc/snippets/Microsoft.Data.SqlClient/SqlCommand.xml Fixes xref formatting for generic retry-logic methods and updates vector-type references; whitespace cleanup.

### How to use with legacy asynchronous commands
Besides assigning the provider to the command and executing the command, it's possible to run it directly using the following <xref:Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider> methods:
- <xref:Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider.Execute%60%601(System.Object,System.Func{%60%600})>
- <xref:Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider.Execute``1(System.Object,System.Func{``0})>
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The markdown heading just above these xref links contains a typo: "asynchoronous" should be "asynchronous".

Copilot uses AI. Check for mistakes.
@paulmedynski paulmedynski added this to the 7.0.1 milestone Mar 31, 2026
@paulmedynski
Copy link
Copy Markdown
Contributor Author

Already tracked by #4107 .

@github-project-automation github-project-automation Bot moved this from To triage to Done in SqlClient Board Mar 31, 2026
@paulmedynski paulmedynski removed this from the 7.0.1 milestone Apr 6, 2026
@paulmedynski paulmedynski deleted the cherry-pick/7.0/4084 branch April 21, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants