Skip to content

Merge | DbConnectionString #3416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 17, 2025
Merged

Conversation

benrr101
Copy link
Contributor

Description

This merge PR is pretty simple. It moves the DbConnectionString class from the netfx project into the common project. It was originally named DBConnectionString but is now renamed to DbConnectionString to follow naming conventions (after @paulmedynski caused a bunch of merge conflicts fixing broken link to the old name...)

I developed this PR on top of some cleanup work for DbConnectionOptions that I rebased off of. There may be some remnants of those changes in this PR.

Issues

Continues work on #1261

Testing

Class is just being renamed and moved, project still builds, CI should be good to verify.

@benrr101 benrr101 added this to the 7.0-preview1 milestone Jun 12, 2025
@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 17:06
@benrr101 benrr101 added the Common Project 🚮 Things that relate to the common project project label Jun 12, 2025
@benrr101 benrr101 requested a review from a team as a code owner June 12, 2025 17:06
Copy link
Contributor

@Copilot 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

This PR consolidates the DbConnectionString class into the common project and renames it from DBConnectionString to follow naming conventions, updating all consumers accordingly.

  • Renamed and relocated DBConnectionString to DbConnectionString under Common
  • Updated SqlClientPermission to reference the renamed class
  • Adjusted the .csproj to include the new file and remove the old compile entry

Reviewed Changes

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

File Description
SqlClientPermission.netfx.cs Switched from DBConnectionString to DbConnectionString usage
DbConnectionString.netfx.cs Renamed class and replaced KEY constants with DbConnectionStringKeywords and synonyms
netfx/src/Microsoft.Data.SqlClient.csproj Added compile include for DbConnectionString.netfx.cs, removed DBConnectionString.cs
Comments suppressed due to low confidence (2)

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj:951

  • Verify the surrounding <ItemGroup> tags after removing this closing tag and the next <ItemGroup> to ensure the XML structure remains valid and all <Compile> entries are grouped correctly.
</ItemGroup>

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientPermission.netfx.cs:65

  • [nitpick] Consider adding or updating unit tests around permission entries that use DbConnectionString to ensure behavior hasn’t regressed after the rename.
AddPermissionEntry(new DbConnectionString(constr));

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.58%. Comparing base (2385ca7) to head (fc8e5b9).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #3416       +/-   ##
=========================================
+ Coverage      0   92.58%   +92.58%     
=========================================
  Files         0        6        +6     
  Lines         0      310      +310     
=========================================
+ Hits          0      287      +287     
- Misses        0       23       +23     
Flag Coverage Δ
addons 92.58% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@benrr101 benrr101 merged commit 95253ac into main Jun 17, 2025
251 checks passed
@benrr101 benrr101 deleted the dev/russellben/merge/move-dbconnectionstring branch June 17, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Common Project 🚮 Things that relate to the common project project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants