-
Notifications
You must be signed in to change notification settings - Fork 293
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
Merge | SqlFileStream (Opt 1) #2898
Merge | SqlFileStream (Opt 1) #2898
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2898 +/- ##
==========================================
+ Coverage 71.92% 72.24% +0.32%
==========================================
Files 294 291 -3
Lines 60342 59769 -573
==========================================
- Hits 43398 43180 -218
+ Misses 16944 16589 -355
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj
Outdated
Show resolved
Hide resolved
Seems like a lot of hassle for little benefit :/
* Fix annoyance with failing unit test setup
* Use variable versions * Remove output type from common project
* Normalize the path *once*
* Fix method signatures (modifier order, argument formatting) * Touching up comments
9e157a5
to
efad644
Compare
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlTypes/SqlFileStream.Windows.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlTypes/SqlFileStream.Windows.cs
Show resolved
Hide resolved
Can you please take a look at conflicts, thanks! |
Description: This PR aims to merge
SqlFileStream
from the netfx and netcore projects. The strategy for this merge is to use the Interop.* libraries from the netcore project to enable merging the classes. Therefore, the code for this class is mostly based on the netcore implementation with a handful of#if NETFRAMEWORK
blocks to add overrides for netfx behavior.The commits are broken up into fairly digestible chunks that explain each step along the process. I'd recommend reviewing the PR by stepping through the commits and seeing if you agree with the changes. Nevertheless, this PR has a lot of code cleanup changes at the end that make the overall PR fairly large. In anticipation of pushback on this, I will offer a separate PR that only contains the merge changes. If that one is accepted, I'll still send out the cleanup change on a separate PR. But, I think this option would be faster overall.
Testing: The existing manual tests for SqlFileStream were used to validate behavior.