Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ internal static class TRANSACTIONBINDING
#if NETFRAMEWORK
internal const int SynonymCount = 33;
#else
internal const int SynonymCount = 30;
internal const int SynonymCount = 32;
#endif // NETFRAMEWORK

private static Dictionary<string, string> s_sqlClientSynonyms;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private enum Keywords
private bool _transparentNetworkIPResolution = DbConnectionStringDefaults.TransparentNetworkIPResolution;
private string _networkLibrary = DbConnectionStringDefaults.NetworkLibrary;
#else
internal const int DeprecatedKeywordsCount = 5;
Copy link
Member

Choose a reason for hiding this comment

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

Can we get rid of this counter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. It's used to mark keywords which are supported in .NET Framework but not in .NET Core. These are Connection Reset and Network Library. Connection Reset should be a fairly easy keyword to merge, but Network Library needs a little more thought - what connection method should we use if the Network Library keyword requests named pipes, but the Server keyword requests TCP?

Copy link
Contributor

Choose a reason for hiding this comment

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

" if the Network Library keyword requests named pipes, but the Server keyword requests TCP"

Invalid connection string?

Copy link
Member

Choose a reason for hiding this comment

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

Not needed, because the connection would fail itself.

Deprecation wise, network library is replaced with 'tcp/np:' in DataSource property, so we need not worry about handling it.

internal const int DeprecatedKeywordsCount = 2;
#endif
#endregion //Fields

Expand Down
Loading