Skip to content

Fix incorrect snippet description - #11584

Merged
David-Engel merged 1 commit into
mainfrom
David-Engel-patch-1
Jul 21, 2025
Merged

David-Engel merged 1 commit into
mainfrom
David-Engel-patch-1

Conversation

@David-Engel

@David-Engel David-Engel commented Jul 17, 2025 •

Copy link
Copy Markdown
Contributor

Fixes #11583

Type of issue

Typo

Description

The example used for SqlCommand(String) has the following description:

"The following example creates a SqlCommand, passing in the connection string and command text."

The problem is the lack of a connection string in the example. How should the the connection string be provided in this example? I assume the proper description would be:

"The following example creates a SqlCommand, passing in the command text."

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @cheenamalhotra, @David-Engel

@David-Engel
David-Engel enabled auto-merge July 17, 2025 21:21
@David-Engel
David-Engel merged commit e494b59 into main Jul 21, 2025
@David-Engel
David-Engel deleted the David-Engel-patch-1 branch July 21, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SqlCommand(String) overload example description is bad. A connection string is not passed in.

2 participants