Skip to content
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

Move into Shared for SqlConnectionString.cs #1329

Merged
merged 16 commits into from
Oct 19, 2021

Conversation

lcheunglci
Copy link
Contributor

Relates to issue #1261 . I merged the netfx to netcore of SqlConnectionString.cs and moved it into shared src. I did notice there was a SqlConnectionString.NetCoreApp.cs which is an empty class. I'm not sure if we should remove it so I kept it. I didn't split this up into partial classes because the differences between netfx and netcore is relatively small and to reduce redundancy of the code. During the code style clean up, I chose not to apply a few info messages namely IDE0038 i.e. code matching on line 440 because it was fairly clear and readable, IDE0057 on 843 simplifying the string substring, I tried all the suggestions that visual studio provided but was unable to remove the info message from the errorlist, and lastly, IDE0075 on line 1205, it feels reductant to check for the Parsetable for the Authentication key return true in both cases since DEFAULT.Encrpyt is also true.

@DavoudEshtehari DavoudEshtehari added the ➕ Code Health Issues/PRs that are targeted to source code quality improvements. label Oct 12, 2021
@DavoudEshtehari DavoudEshtehari added this to the 4.0.0-preview3 milestone Oct 12, 2021
…rename of ADP.IsWindowsNT to ADP.s_isWindowsNT
Copy link
Contributor

@DavoudEshtehari DavoudEshtehari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are improvements which I'd rather be included in this change.

…NYM to reference from DbConnectionStringCommon.cs
…date the functional tests where they check the exception message to also be case insensitive
…re due to case senstive exception message string comparison, and update SqlConnectionTest to use OrdinalIgnoreCase instead of CurrentCultureIgnoreCase
@DavoudEshtehari
Copy link
Contributor

DavoudEshtehari commented Oct 18, 2021

Have you checked the discussion in #1265? @cheenamalhotra

@@ -952,6 +952,7 @@ internal static class DbConnectionStringDefaults
internal const bool ContextConnection = false;
internal static readonly bool TransparentNetworkIPResolution = !LocalAppContextSwitches.DisableTNIRByDefault;
internal const string NetworkLibrary = "";
internal const bool Asynchronous = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed since Async is true by default now. But maybe we can remove it in a future PR since this one is already big.

@DavoudEshtehari
Copy link
Contributor

@lcheunglci I think some of my reviews haven't been seen. Just brought them up here to catch your attention:

@cheenamalhotra
Copy link
Member

Have you checked the discussion in #1265? @cheenamalhotra

I see, thanks, plz ignore it then!

@cheenamalhotra cheenamalhotra merged commit e848450 into dotnet:main Oct 19, 2021
@lcheunglci lcheunglci deleted the MergeShared-SqlConnectionString branch October 19, 2021 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ Code Health Issues/PRs that are targeted to source code quality improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants