Skip to content

Commit 05cb471

Browse files
Merge branch 'main' of https://github.com/dotnet/SqlClient into drop-netcore2.1
2 parents e19617f + 249b4ea commit 05cb471

File tree

55 files changed

+1707
-2254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1707
-2254
lines changed

BUILDGUIDE.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ Manual Tests require the below setup to run:
118118
|AzureKeyVaultClientId | (Optional) "Application (client) ID" of an Active Directory registered application, granted access to the Azure Key Vault specified in `AZURE_KEY_VAULT_URL`. Requires the key permissions Get, List, Import, Decrypt, Encrypt, Unwrap, Wrap, Verify, and Sign. | _{Client Application ID}_ |
119119
|AzureKeyVaultClientSecret | (Optional) "Client Secret" of the Active Directory registered application, granted access to the Azure Key Vault specified in `AZURE_KEY_VAULT_URL` | _{Client Application Secret}_ |
120120
|LocalDbAppName | (Optional) If Local Db Testing is supported, this property configures the name of Local DB App instance available in client environment. Empty string value disables Local Db testing. | Name of Local Db App to connect to.|
121+
|LocalDbSharedInstanceName | (Optional) If LocalDB testing is supported and the instance is shared, this property configures the name of the shared instance of LocalDB to connect to. | Name of shared instance of LocalDB. |
121122
|SupportsIntegratedSecurity | (Optional) Whether or not the USER running tests has integrated security access to the target SQL Server.| `true` OR `false`|
122-
|SupportsFileStream | (Optional) Whether or not FileStream is enabled on SQL Server| `true` OR `false`|
123+
|FileStreamDirectory | (Optional) If File Stream is enabled on SQL Server, pass local directory path to be used for setting up File Stream enabled database. | `D:\\escaped\\absolute\\path\\to\\directory\\` |
123124
|UseManagedSNIOnWindows | (Optional) Enables testing with Managed SNI on Windows| `true` OR `false`|
124125
|IsAzureSynpase | (Optional) When set to 'true', test suite runs compatible tests for Azure Synapse/Parallel Data Warehouse. | `true` OR `false`|
125126

@@ -245,12 +246,6 @@ Scaled decimal parameter truncation can be enabled by enabling the below AppCont
245246

246247
**"Switch.Microsoft.Data.SqlClient.TruncateScaledDecimal"**
247248

248-
## Enabling configurable retry logic
249-
250-
To use this feature, you must enable the following AppContext switch at application startup:
251-
252-
**"Switch.Microsoft.Data.SqlClient.EnableRetryLogic"**
253-
254249
## Enabling row version null behavior
255250

256251
`SqlDataReader` returns a `DBNull` value instead of an empty `byte[]`. To enable the legacy behavior, you must enable the following AppContext switch on application startup:

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

7+
## [Preview Release 4.0.0-preview2.21264.2] - 2021-09-21
8+
9+
This update brings the below changes over the previous release:
10+
11+
### Breaking changes over preview release v4.0.0-preview1
12+
13+
- Removed `Configurable Retry Logic` safety switch. [#1254](https://github.com/dotnet/SqlClient/pull/1254)
14+
15+
### Added
16+
17+
- Added support for `SqlFileStream` on Windows using .NET Standard 2.0 and above. [#1240](https://github.com/dotnet/SqlClient/pull/1240)
18+
- Added support for **localdb** `shared instance` using managed SNI. [#1237](https://github.com/dotnet/SqlClient/pull/1237)
19+
20+
### Fixed
21+
22+
- Fixed `.NET decimal` conversion from `SqlDecimal`. [#1179](https://github.com/dotnet/SqlClient/pull/1179)
23+
- Fixed `Event Source` changes on **TryBeginExecuteEvent** and **WriteEndExecuteEvent** to address the failure on other MS products such as OpenTelemetry and Application Insight. [#1258](https://github.com/dotnet/SqlClient/pull/1258)
24+
- Fixed command's async cancellation. [#956](https://github.com/dotnet/SqlClient/pull/956)
25+
- Fixed deadlock in transaction using .NET Framework. [#1242](https://github.com/dotnet/SqlClient/pull/1242)
26+
- Fixed unknown transaction state issues when prompting delegated transaction. [1216](https://github.com/dotnet/SqlClient/pull/1216)
27+
28+
### Changed
29+
30+
- Various code improvements [#1155](https://github.com/dotnet/SqlClient/pull/1155) [#1236](https://github.com/dotnet/SqlClient/pull/1236) [#1251](https://github.com/dotnet/SqlClient/pull/1251) [#1266](https://github.com/dotnet/SqlClient/pull/1266)
31+
732
## [Preview Release 4.0.0-preview1.21237.2] - 2021-08-25
833

934
### Breaking changes over stable release 3.0.0
@@ -53,6 +78,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5378
### Breaking Changes
5479
- Modified column encryption key store provider registrations to give built-in system providers precedence over providers registered on connection and command instances. [#1101](https://github.com/dotnet/SqlClient/pull/1101)
5580

81+
## [Stable Release 2.1.4] - 2021-09-20
82+
83+
### Fixed
84+
85+
- Fixed issue with connection encryption to ensure connections fail when encryption is required. [#1232](https://github.com/dotnet/SqlClient/pull/1232)
86+
- Fixed issue where connection goes to unusable state. [#1239](https://github.com/dotnet/SqlClient/pull/1239)
5687

5788
## [Stable Release 2.1.3] - 2021-05-21
5889

release-notes/2.1/2.1.4.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Release Notes
2+
3+
## Microsoft.Data.SqlClient 2.1.4 released 20 September 2021
4+
5+
This update brings the below changes over the previous stable release:
6+
7+
### Fixed
8+
9+
- Fixed issue with connection encryption to ensure connections fail when encryption is required. [#1232](https://github.com/dotnet/SqlClient/pull/1232) [Read more](#ensure-connections-fail-when-encryption-is-required)
10+
- Fixed issue where connection goes to unusable state. [#1239](https://github.com/dotnet/SqlClient/pull/1239)
11+
12+
### Target Platform Support
13+
14+
- .NET Framework 4.6+ (Windows x86, Windows x64)
15+
- .NET Core 2.1+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS)
16+
- .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS)
17+
18+
### Ensure connections fail when encryption is required
19+
20+
In scenarios where client encryption libraries were disabled or unavailable, it was possible for unencrypted connections to be made when Encrypt was set to true or the server required encryption.
21+
22+
### Dependencies
23+
24+
#### .NET Framework
25+
26+
- Microsoft.Data.SqlClient.SNI 2.1.1
27+
- Microsoft.Identity.Client 4.21.1
28+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
29+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
30+
31+
#### .NET Core 2.1
32+
33+
- Microsoft.Data.SqlClient.SNI.runtime 2.1.1
34+
- Microsoft.Win32.Registry 4.7.0
35+
- System.Security.Principal.Windows 4.7.0
36+
- System.Text.Encoding.CodePages 4.7.0
37+
- System.Diagnostics.DiagnosticSource 4.7.0
38+
- System.Configuration.ConfigurationManager 4.7.0
39+
- System.Runtime.Caching 4.7.0
40+
- Microsoft.Identity.Client 4.21.1
41+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
42+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
43+
44+
#### .NET Core 3.1
45+
46+
- Microsoft.Data.SqlClient.SNI.runtime 2.1.1
47+
- Microsoft.Win32.Registry 4.7.0
48+
- System.Security.Principal.Windows 4.7.0
49+
- System.Text.Encoding.CodePages 4.7.0
50+
- System.Diagnostics.DiagnosticSource 4.7.0
51+
- System.Configuration.ConfigurationManager 4.7.0
52+
- System.Runtime.Caching 4.7.0
53+
- Microsoft.Identity.Client 4.21.1
54+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
55+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
56+
57+
#### .NET Standard 2.0
58+
59+
- Microsoft.Data.SqlClient.SNI.runtime 2.1.1
60+
- Microsoft.Win32.Registry 4.7.0
61+
- System.Buffers 4.5.1
62+
- System.Memory 4.5.4
63+
- System.Security.Principal.Windows 4.7.0
64+
- System.Text.Encoding.CodePages 4.7.0
65+
- System.Runtime.Caching 4.7.0
66+
- Microsoft.Identity.Client 4.21.1
67+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
68+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
69+
70+
#### .NET Standard 2.1
71+
72+
- Microsoft.Data.SqlClient.SNI.runtime 2.1.1
73+
- Microsoft.Win32.Registry 4.7.0
74+
- System.Buffers 4.5.1
75+
- System.Memory 4.5.4
76+
- System.Security.Principal.Windows 4.7.0
77+
- System.Text.Encoding.CodePages 4.7.0
78+
- System.Runtime.Caching 4.7.0
79+
- Microsoft.Identity.Client 4.21.1
80+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
81+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0

release-notes/2.1/2.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The following Microsoft.Data.SqlClient 2.1 stable releases have been shipped:
44

55
| Release Date | Version | Notes |
66
| :-- | :-- | :--: |
7+
| 2021/09/20 | 2.1.4 | [release notes](2.1.4.md) |
78
| 2021/05/21 | 2.1.3 | [release notes](2.1.3.md) |
89
| 2021/03/03 | 2.1.2 | [release notes](2.1.2.md) |
910
| 2020/12/18 | 2.1.1 | [release notes](2.1.1.md) |

release-notes/2.1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The following Microsoft.Data.SqlClient 2.1 stable releases have been shipped:
44

55
| Release Date | Version | Notes |
66
| :-- | :-- | :--: |
7+
| 2021/09/20 | 2.1.4 | [release notes](2.1.4.md) |
78
| 2021/05/21 | 2.1.3 | [release notes](2.1.3.md) |
89
| 2021/03/03 | 2.1.2 | [release notes](2.1.2.md) |
910
| 2020/12/18 | 2.1.1 | [release notes](2.1.1.md) |
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Release Notes
2+
3+
## Microsoft.Data.SqlClient 4.0.0-preview2.21264.2 released 21 September 2021
4+
5+
This update brings the below changes over the previous release:
6+
7+
### Breaking changes over preview release v4.0.0-preview1
8+
9+
- Removed `Configurable Retry Logic` safety switch. [#1254](https://github.com/dotnet/SqlClient/pull/1254) [Read more](#remove-configurable-retry-logic-safety-switch)
10+
11+
### Added
12+
13+
- Added support for `SqlFileStream` on Windows using .NET Standard 2.0 and above. [#1240](https://github.com/dotnet/SqlClient/pull/1240)
14+
- Added support for **localdb** `shared instance` using managed SNI. [#1237](https://github.com/dotnet/SqlClient/pull/1237) [Read more](#sqllocaldb-shared-instance-support)
15+
16+
### Fixed
17+
18+
- Fixed `.NET decimal` conversion from `SqlDecimal`. [#1179](https://github.com/dotnet/SqlClient/pull/1179)
19+
- Fixed `Event Source` changes on **TryBeginExecuteEvent** and **WriteEndExecuteEvent** to address the failure on other MS products such as OpenTelemetry and Application Insight. [#1258](https://github.com/dotnet/SqlClient/pull/1258)
20+
- Fixed command's async cancellation. [#956](https://github.com/dotnet/SqlClient/pull/956)
21+
- Fixed deadlock in transaction using .NET Framework. [#1242](https://github.com/dotnet/SqlClient/pull/1242)
22+
- Fixed unknown transaction state issues when prompting delegated transaction. [1216](https://github.com/dotnet/SqlClient/pull/1216)
23+
24+
### Changed
25+
26+
- Various code improvements [#1155](https://github.com/dotnet/SqlClient/pull/1155) [#1236](https://github.com/dotnet/SqlClient/pull/1236) [#1251](https://github.com/dotnet/SqlClient/pull/1251) [#1266](https://github.com/dotnet/SqlClient/pull/1266)
27+
28+
### Remove configurable retry logic safety switch
29+
30+
The App Context switch "Switch.Microsoft.Data.SqlClient.EnableRetryLogic" will no longer be required to use the configurable retry logic feature. The feature is now supported in production. The default behavior of the feature will continue to be a non-retry policy, which will need to be overridden by client applications to enable retries.
31+
32+
### SqlLocalDb shared instance support
33+
34+
SqlLocalDb shared instances are now supported when using Managed SNI.
35+
36+
- Possible scenarios:
37+
- `(localdb)\.` (connects to default instance of SqlLocalDb)
38+
- `(localdb)\<named instance>`
39+
- `(localdb)\.\<shared instance name>` (*newly added support)
40+
41+
## Target Platform Support
42+
43+
- .NET Framework 4.6.1+ (Windows x86, Windows x64)
44+
- .NET Core 2.1+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS)
45+
- .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS)
46+
47+
### Dependencies
48+
49+
#### .NET Framework
50+
51+
- Microsoft.Data.SqlClient.SNI 4.0.0-preview1.21232.1
52+
- Azure.Identity 1.3.0
53+
- Microsoft.Identity.Client 4.22.0
54+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
55+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
56+
- System.Buffers 4.5.1
57+
- System.Configuration.ConfigurationManager 5.0.0
58+
- System.IO 4.3.0
59+
- System.Runtime.InteropServices.RuntimeInformation 4.3.0
60+
- System.Security.Cryptography.Algorithms 4.3.1
61+
- System.Security.Cryptography.Primitives 4.3.0
62+
- System.Text.Encodings.Web 4.7.2
63+
64+
#### .NET Core
65+
66+
- Microsoft.Data.SqlClient.SNI.runtime 4.0.0-preview1.21232.1
67+
- Azure.Identity 1.3.0
68+
- Microsoft.Identity.Client 4.22.0
69+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
70+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
71+
- Microsoft.Win32.Registry 5.0.0
72+
- System.Buffers 4.5.1
73+
- System.Configuration.ConfigurationManager 5.0.0
74+
- System.Diagnostics.DiagnosticSource 5.0.0
75+
- System.IO 4.3.0
76+
- System.Runtime.Caching 5.0.0
77+
- System.Text.Encoding.CodePages 5.0.0
78+
- System.Text.Encodings.Web 4.7.2
79+
- System.Resources.ResourceManager 4.3.0
80+
- System.Security.Cryptography.Cng 5.0.0
81+
- System.Security.Principal.Windows 5.0.0
82+
83+
#### .NET Standard
84+
85+
- Microsoft.Data.SqlClient.SNI.runtime 4.0.0-preview1.21232.1
86+
- Azure.Identity 1.3.0
87+
- Microsoft.Identity.Client 4.22.0
88+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0
89+
- Microsoft.IdentityModel.JsonWebTokens 6.8.0
90+
- Microsoft.Win32.Registry 5.0.0
91+
- System.Buffers 4.5.1
92+
- System.Configuration.ConfigurationManager 5.0.0
93+
- System.IO 4.3.0
94+
- System.Runtime.Caching 5.0.0
95+
- System.Text.Encoding.CodePages 5.0.0
96+
- System.Text.Encodings.Web 4.7.2
97+
- System.Resources.ResourceManager 4.3.0
98+
- System.Runtime.Loader 4.3.0
99+
- System.Security.Cryptography.Cng 5.0.0
100+
- System.Security.Principal.Windows 5.0.0

release-notes/4.0/4.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Microsoft.Data.SqlClient 4.0 Releases
2+
3+
The following Microsoft.Data.SqlClient 4.0 preview releases have been shipped:
4+
5+
| Release Date | Version | Notes |
6+
| :-- | :-- | :--: |
7+
| 2021/09/21 | 4.0.0-preview2.21264.2 | [release notes](4.0.0-preview2.md) |
8+
| 2021/08/25 | 4.0.0-preview1.21237.2 | [release notes](4.0.0-preview1.md) |

release-notes/4.0/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ The following Microsoft.Data.SqlClient 4.0 preview releases have been shipped:
44

55
| Release Date | Version | Notes |
66
| :-- | :-- | :--: |
7+
| 2021/09/21 | 4.0.0-preview2.21264.2 | [release notes](4.0.0-preview2.md) |
78
| 2021/08/25 | 4.0.0-preview1.21237.2 | [release notes](4.0.0-preview1.md) |

src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.NetCoreApp.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)