Skip to content

Conversation

benrr101
Copy link
Contributor

@benrr101 benrr101 commented Jun 9, 2025

Description

This PR merges the SqlBulkCopy from both netfx and netcore projects into a single instance in the common project. This was surprisingly easy, as the vast majority of the two versions were identical. I'll add callouts in the diff for the few differences that needed to be addressed, though in most cases, the netcore versions were taken since they were slightly more performant than the netfx version.

There is also a lot of stubs added to common projects. This was just to make it easier to verify that the file is error-free when working in the common project. If necessary, I can drop these from the PR.

Issues

More work for #1261

Testing

Code is mostly just moved, so CI should validate the behavior.

@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 22:27
@benrr101 benrr101 added the Common Project 🚮 Things that relate to the common project project label Jun 9, 2025
@benrr101 benrr101 requested a review from a team as a code owner June 9, 2025 22:27
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

paulmedynski
paulmedynski previously approved these changes Jun 11, 2025
@benrr101 benrr101 requested review from mdaigle and paulmedynski June 12, 2025 03:54
paulmedynski
paulmedynski previously approved these changes Jun 12, 2025
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

Attention: Patch coverage is 39.39394% with 40 lines in your changes missing coverage. Please review.

Project coverage is 67.55%. Comparing base (95253ac) to head (096efcc).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...Client/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs 48.14% 28 Missing ⚠️
....SqlClient/src/Microsoft/Data/SqlClient/SqlUtil.cs 0.00% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3405      +/-   ##
==========================================
+ Coverage   67.21%   67.55%   +0.33%     
==========================================
  Files         220      293      +73     
  Lines       45629    63810   +18181     
==========================================
+ Hits        30671    43107   +12436     
- Misses      14958    20703    +5745     
Flag Coverage Δ
addons 92.58% <ø> (?)
netcore 72.47% <39.68%> (?)
netfx 66.22% <39.06%> (-1.00%) ⬇️

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 12f742d into main Jun 20, 2025
251 checks passed
@benrr101 benrr101 deleted the dev/russellben/merge/sqlbulkcopy branch June 20, 2025 17:02
@paulmedynski paulmedynski added this to the 6.1-preview2 milestone Jun 23, 2025
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.

4 participants