diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
index ff1672c097..f4f09ef5ea 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
@@ -310,6 +310,14 @@
Microsoft\Data\SqlClient\Reliability\SqlConfigurableRetryLogicManager.cs
+
+ Microsoft\Data\SqlClient\Reliability\SqlConfigurableRetryLogicLoader.cs
+
+
+ Microsoft\Data\SqlClient\Reliability\AppConfigManager.cs
+
+
+
Microsoft\Data\SqlClient\SqlUtil.cs
@@ -334,7 +342,6 @@
-
@@ -383,14 +390,6 @@
-
- Microsoft\Data\SqlClient\Reliability\SqlConfigurableRetryLogicManager.CreateProvider.NetCoreApp.cs
-
-
- Microsoft\Data\SqlClient\Reliability\AppConfigManager.NetCoreApp.cs
-
-
-
@@ -838,7 +837,7 @@
-
+
@@ -857,6 +856,7 @@
+
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/Reliability/SqlConfigurableRetryLogicManager.NetStandard.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/Reliability/SqlConfigurableRetryLogicManager.NetStandard.cs
deleted file mode 100644
index 7d01bf7713..0000000000
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/Reliability/SqlConfigurableRetryLogicManager.NetStandard.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-
-namespace Microsoft.Data.SqlClient
-{
- ///
- /// Configurable retry logic manager;
- /// Receive the default providers by a loader and feeds the connections and commands.
- ///
- internal sealed partial class SqlConfigurableRetryLogicManager
- {
- private static readonly Lazy s_loader =
- new Lazy(() => new SqlConfigurableRetryLogicLoader());
- }
- ///
- /// Configurable retry logic loader
- ///
- internal sealed partial class SqlConfigurableRetryLogicLoader
- {
- public SqlConfigurableRetryLogicLoader()
- {
- AssignProviders();
- }
- }
-}
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/Reliability/SqlAppContextSwitchManager.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAppContextSwitchManager.NetCoreApp.cs
similarity index 100%
rename from src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/Reliability/SqlAppContextSwitchManager.NetCoreApp.cs
rename to src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAppContextSwitchManager.NetCoreApp.cs
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs
index e4b71d6eb2..24a82db701 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlCommand.cs
@@ -493,20 +493,7 @@ private SqlInternalConnectionTds InternalTdsConnection
}
}
- private bool? _isRetryEnabled;
- private bool IsRetryEnabled
- {
- get
- {
- if (_isRetryEnabled == null)
- {
- bool result;
- result = AppContext.TryGetSwitch(SqlRetryLogicProvider.EnableRetryLogicSwitch, out result) ? result : false;
- _isRetryEnabled = result;
- }
- return (bool)_isRetryEnabled;
- }
- }
+ private static bool IsRetryEnabled => LocalAppContextSwitches.IsRetryEnabled;
///
public SqlRetryLogicBaseProvider RetryLogicProvider
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs
index 5ce75ba598..6bdc8cf6f9 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs
@@ -111,20 +111,7 @@ private static readonly ConcurrentDictionary> _ColumnEncry
private static readonly Action