-
Notifications
You must be signed in to change notification settings - Fork 286
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
Move into Shared for SqlConnectionString.cs #1329
Conversation
…update references in the csprojs
…, IDE0090, IDE0066, IDE0018, IDE0075, and IDE0057
…rename of ADP.IsWindowsNT to ADP.s_isWindowsNT
There was a problem hiding this 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.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Show resolved
Hide resolved
…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
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
…ist wasn't set due to a missed merge and remove unnecessary namespace
5126f19
to
604d035
Compare
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Show resolved
Hide resolved
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; |
There was a problem hiding this comment.
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.
@lcheunglci I think some of my reviews haven't been seen. Just brought them up here to catch your attention: |
I see, thanks, plz ignore it then! |
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 theAuthentication
key returntrue
in both cases sinceDEFAULT.Encrpyt
is alsotrue
.