|
| 1 | +# Release Notes |
| 2 | + |
| 3 | +## Microsoft.Data.SqlClient 2.0.0-preview1.20021.1 released 21 January 2020 |
| 4 | + |
| 5 | +This update brings the below changes over the previous release: |
| 6 | + |
| 7 | +### Added |
| 8 | +- Added support to allow large UDT buffer size (_upto_ `Int.MaxValue`) as supported by SQL Server starting TDS 7.3 [#340](https://github.com/dotnet/SqlClient/pull/340) |
| 9 | + |
| 10 | +### Fixed |
| 11 | +- Fixed issues with `SqlCommandSet` not working with Byte Array parameters [#360](https://github.com/dotnet/SqlClient/pull/360) |
| 12 | +- Fixed Statement command cancellation in Managed SNI [#248](https://github.com/dotnet/SqlClient/pull/248) - Ported [dotnet/corefx#38271](https://github.com/dotnet/corefx/pull/38271) |
| 13 | +- Fixed zero connection timeout issue in Managed SNI [#332](https://github.com/dotnet/SqlClient/pull/332) |
| 14 | +- Fixed "DataType" metadata information for TinyInt datatype to be `System.Byte` [#338](https://github.com/dotnet/SqlClient/pull/338) |
| 15 | +- Fixed driver behavior to use `CancellationTokenResource` only for non-infinite timeout and cleanup after usage [#339](https://github.com/dotnet/SqlClient/pull/338) |
| 16 | +- Fixed `ConnectionTime` and `ClientConnectionId` reported by `SqlStatistics` when connection is closed [#341](https://github.com/dotnet/SqlClient/pull/341) |
| 17 | +- Fixed deadlock issues by reverting async changes to `SNIPacket` [#349](https://github.com/dotnet/SqlClient/pull/349) |
| 18 | + |
| 19 | +### Changes |
| 20 | +- Improved performance of Managed SNI by removing double fetch of domain name [#366](https://github.com/dotnet/SqlClient/pull/366) |
| 21 | +- Improved performance of Async Method Allocations in Managed SNI [#328](https://github.com/dotnet/SqlClient/pull/328) |
| 22 | +- Improved performance of Managed SNI by enhancing utilization of resources [#173](https://github.com/dotnet/SqlClient/pull/173) - Ported [dotnet/corefx#35363](https://github.com/dotnet/corefx/pull/35363) and [dotnet/corefx#40732](https://github.com/dotnet/corefx/pull/40732) |
| 23 | +- Improved performance of Managed SNI RPC Parameter Usage [#209](https://github.com/dotnet/SqlClient/pull/209) - Ported [dotnet/corefx#34049](https://github.com/dotnet/corefx/pull/34049) |
| 24 | +- Changed enclave key map to be lazy initialized [#372](https://github.com/dotnet/SqlClient/pull/372) |
| 25 | +- Changed `Recieve()` and `ReceiveAsync()` implementation to receive null packets on failure [#350](https://github.com/dotnet/SqlClient/pull/350) |
| 26 | +- Changed `EnclaveProviderBase` caching implementation to support Async Scenarios _(Introduces breaking changes)_ [#346](https://github.com/dotnet/SqlClient/pull/346) |
| 27 | + |
| 28 | +### Breaking Changes |
| 29 | +- Public APIs in `SqlColumnEncryptionEnclaveProvider` have been modified in PR [#346](https://github.com/dotnet/SqlClient/pull/346) as under: |
| 30 | + |
| 31 | + _[Applies to both .NET Framework and .NET Core targeting applications]_ |
| 32 | + |
| 33 | + #### `CreateEnclaveSession()` |
| 34 | + |
| 35 | + ```cs |
| 36 | + // Old Definition |
| 37 | + public abstract void CreateEnclaveSession(byte[] enclaveAttestationInfo, System.Security.Cryptography.ECDiffieHellmanCng clientDiffieHellmanKey, string attestationUrl, string servername, out Microsoft.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter); |
| 38 | + |
| 39 | + // New Definition |
| 40 | + public abstract void CreateEnclaveSession(byte[] enclaveAttestationInfo, System.Security.Cryptography.ECDiffieHellmanCng clientDiffieHellmanKey, string attestationUrl, string servername, byte[] customData, int customDataLength, out Microsoft.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter); |
| 41 | + ``` |
| 42 | + |
| 43 | + #### `GetAttestationParameters()` |
| 44 | + |
| 45 | + ```cs |
| 46 | + // Old Definition |
| 47 | + public abstract Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters GetAttestationParameters(); |
| 48 | + |
| 49 | + // New Definition |
| 50 | + public abstract Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters GetAttestationParameters(string attestationUrl, byte[] customData, int customDataLength); |
| 51 | + ``` |
| 52 | + |
| 53 | + #### `GetEnclaveSession()` |
| 54 | + |
| 55 | + ```cs |
| 56 | + // Old Definition |
| 57 | + public abstract void GetEnclaveSession(string serverName, string attestationUrl, out Microsoft.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter); |
| 58 | + |
| 59 | + // New Definition |
| 60 | + public abstract void GetEnclaveSession(string serverName, string attestationUrl, bool generateCustomData, out Microsoft.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter, out byte[] customData, out int customDataLength); |
| 61 | + ``` |
| 62 | + |
| 63 | +## Target Platform Support |
| 64 | + |
| 65 | +- .NET Framework 4.6+ |
| 66 | +- .NET Core 2.1+ (Windows x86, Windows x64, Linux, macOS) |
| 67 | +- .NET Standard 2.0+ (Windows x86, Windows x64, Linux, macOS) |
| 68 | + |
| 69 | +### Dependencies |
| 70 | + |
| 71 | +#### .NET Framework |
| 72 | + |
| 73 | +- System.Data.Common 4.3.0 |
| 74 | +- Microsoft.Data.SqlClient.SNI 1.1.0 |
| 75 | +- Microsoft.Identity.Client 3.0.8 |
| 76 | + |
| 77 | +#### .NET Core |
| 78 | + |
| 79 | +- Microsoft.Win32.Registry 4.5.0 |
| 80 | +- runtime.native.System.Data.SqlClient.sni 4.4.0 |
| 81 | +- System.Security.Principal.Windows 4.5.0 |
| 82 | +- System.Text.Encoding.CodePages 4.5.0 |
| 83 | +- System.Configuration.ConfigurationManager 4.5.0 |
| 84 | +- Microsoft.Identity.Client 3.0.8 |
| 85 | + |
| 86 | +#### .NET Standard |
| 87 | + |
| 88 | +- Microsoft.Win32.Registry 4.5.0 |
| 89 | +- runtime.native.System.Data.SqlClient.sni 4.4.0 |
| 90 | +- System.Buffers 4.4.0 |
| 91 | +- System.Diagnostics.DiagnosticSource 4.5.0 |
| 92 | +- System.Memory 4.5.1 |
| 93 | +- System.Security.Principal.Windows 4.5.0 |
| 94 | +- System.Text.Encoding.CodePages 4.5.0 |
| 95 | +- System.Configuration.ConfigurationManager 4.5.0 |
| 96 | +- Microsoft.Identity.Client 3.0.8 |
0 commit comments