Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Merge/Cleanup | GreenMethods#3254

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
paulmedynski merged 2 commits intomainfromdev/russellben/merge/greenmethods
Apr 8, 2025

Conversation

benrr101
Copy link
Contributor

Description: There was an oddly namedGreenMethods in the common namespace for the netfx project. Upon inspection, the code was only being used in SqlClientFactory, so I rolled that into the SqlClientFactory. Not only that, but I simplified the implementation quite a bit by usingLazy objects (which was sort of called for in the original comments). A permission attribute about reflection was removed in the process and if it turns out this was super important, I can roll these changes back to a more traditional merge.

As such, theGreenMethods class is removed 🚮

@benrr101benrr101 added the Common Project 🚮Things that relate to the common project project labelApr 2, 2025
@benrr101benrr101 requested review froma team andCopilotApril 2, 2025 19:36
Copy link
Contributor

@CopilotCopilotAI 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 removes the unused GreenMethods class and integrates its functionality directly into SqlClientFactory with a simplified lazy-loading implementation. Key changes include:

  • Elimination of the GreenMethods class.
  • Incorporation of lazy initialization for provider service types within SqlClientFactory.
  • Simplification of error message documentation and reduction of redundant reflection code.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

FileDescription
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientFactory.csMerges GreenMethods functionality into SqlClientFactory and refactors service resolution logic.
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/Common/GreenMethods.csRemoves the deprecated GreenMethods class as it is no longer needed.
Files not reviewed (1)
  • src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj: Language not supported

@codecovCodecov
Copy link

codecovbot commentedApr 2, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.94%. Comparing base(4c7219d) to head(6f069da).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #3254      +/-   ##==========================================+ Coverage   72.82%   72.94%   +0.12%==========================================  Files         298      297       -1       Lines       59614    59614              ==========================================+ Hits        43411    43483      +72+ Misses      16203    16131      -72
FlagCoverage Δ
addons92.58% <ø> (ø)
netcore75.35% <100.00%> (+0.04%)⬆️
netfx71.53% <100.00%> (+0.15%)⬆️

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.

@mdaiglemdaigle self-assigned thisApr 3, 2025
@paulmedynskipaulmedynski merged commit2bb0dc7 intomainApr 8, 2025
252 checks passed
@paulmedynskipaulmedynski deleted the dev/russellben/merge/greenmethods branchApril 8, 2025 15:16
@cheenamalhotracheenamalhotra added this to the6.1-preview1 milestoneApr 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@mdaiglemdaiglemdaigle approved these changes

@paulmedynskipaulmedynskipaulmedynski approved these changes

Assignees

@mdaiglemdaigle

Labels
Common Project 🚮Things that relate to the common project project
Projects
None yet
Milestone
6.1-preview1
Development

Successfully merging this pull request may close these issues.

4 participants
@benrr101@mdaigle@paulmedynski@cheenamalhotra

[8]ページ先頭

©2009-2025 Movatter.jp