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 | SessionHandle.*.cs#3247

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
benrr101 merged 1 commit intomainfromdev/russellben/merge/sessionhandle
Apr 2, 2025

Conversation

benrr101
Copy link
Contributor

Description: Super duper easy, moving the SessionHandle class implementations from the netcore project to the common project. Classes are now wrapped with #if NET

There's a very small difference between the two files, but as it stands today we don't have the right solution for #if defining the OS. This will be addressed later, once all classes have been merged.

Testing: Literally no functional changes. Tests should breeze through unless I goofed on building for Unix.

@benrr101benrr101 added the Common Project 🚮Things that relate to the common project project labelMar 26, 2025
@benrr101benrr101 requested review froma team andCopilotMarch 26, 2025 23:18
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 moves the SessionHandle class implementations from the netcore project into the common project and wraps the classes in conditional compilation blocks (#if NET) to support portability between Windows and Unix.

  • Moves implementations of SessionHandle from netcore-specific files to a common project
  • Introduces #if NET directives in both Windows and Unix source files as a temporary solution

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/SessionHandle.netcore.Windows.csAdded "#if NET" wrapping to support conditional compilation for Windows-only code
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SessionHandle.netcore.Unix.csAdded "#if NET" wrapping to support conditional compilation for Unix-specific code
Files not reviewed (1)
  • src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj: Language not supported
Comments suppressed due to low confidence (2)

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SessionHandle.netcore.Windows.cs:5

  • [nitpick] The conditional compilation symbol 'NET' is ambiguous given the multiple .NET versions available; consider using a more descriptive symbol (e.g., NETCORE or NET5_0_OR_GREATER) to clarify its intent.
#if NET

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SessionHandle.netcore.Unix.cs:5

  • [nitpick] The conditional compilation symbol 'NET' is ambiguous given the multiple .NET versions available; consider using a more descriptive symbol (e.g., NETCORE or NET5_0_OR_GREATER) to clarify its intent.
#if NET

@codecovCodecov
Copy link

codecovbot commentedMar 27, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.82%. Comparing base(1247ca4) to head(9588f39).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #3247      +/-   ##==========================================+ Coverage   72.69%   72.82%   +0.13%==========================================  Files         303      300       -3       Lines       59718    59611     -107     ==========================================  Hits        43414    43414+ Misses      16304    16197     -107
FlagCoverage Δ
addons92.58% <ø> (ø)
netcore75.25% <ø> (+0.14%)⬆️
netfx71.45% <ø> (+0.07%)⬆️

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.

@paulmedynskipaulmedynski self-assigned thisMar 27, 2025
@cheenamalhotracheenamalhotra added this to the6.1-preview1 milestoneApr 1, 2025
@mdaiglemdaigle self-assigned thisApr 2, 2025
@benrr101benrr101 merged commit4c7219d intomainApr 2, 2025
252 checks passed
@benrr101benrr101 deleted the dev/russellben/merge/sessionhandle branchApril 2, 2025 18:48
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

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