|
| 1 | +# Release Notes |
| 2 | + |
| 3 | +## Microsoft.Data.SqlClient 4.0.0-preview3.21293.2 released 20 October 2021 |
| 4 | + |
| 5 | +This update brings the below changes over the previous release: |
| 6 | + |
| 7 | +### Breaking changes over preview release v4.0.0-preview2 |
| 8 | + |
| 9 | +- Dropped support for .NET Core 2.1 [#1272](https://github.com/dotnet/SqlClient/pull/1272) |
| 10 | +- [.NET Framework] Exception will not be thrown if a User ID is provided in the connection string when using `Active Directory Integrated` authentication [#1359](https://github.com/dotnet/SqlClient/pull/1359) |
| 11 | + |
| 12 | +### Added |
| 13 | + |
| 14 | +- Add `GetFieldValueAsync<T>` and `GetFieldValue<T>` support for `XmlReader`, `TextReader`, `Stream` [#1019](https://github.com/dotnet/SqlClient/pull/1019). [Read more](#getfieldvalueasynct-and-getfieldvaluet-support-for-xmlreader-textreader-stream-types) |
| 15 | + |
| 16 | +### Fixed |
| 17 | + |
| 18 | +- Fixed `FormatException` when opening a connection with event tracing enabled [#1291](https://github.com/dotnet/SqlClient/pull/1291) |
| 19 | +- Fixed improper initialization of `ActiveDirectoryAuthenticationProvider` [#1328](https://github.com/dotnet/SqlClient/pull/1328) |
| 20 | +- Fixed `MissingMethodException` when accessing `SqlAuthenticationParameters.ConnectionTimeout` [#1336](https://github.com/dotnet/SqlClient/pull/1336) |
| 21 | +- Fixed data corruption issues by reverting changes to async cancellations [#1352](https://github.com/dotnet/SqlClient/pull/1352) |
| 22 | +- Fixed performance degradation by reverting changes to MARS state machine [#1357](https://github.com/dotnet/SqlClient/pull/1357) |
| 23 | +- Fixed bug where environment variables are ignored when using `Active Directory Default` authentication [#1360](https://github.com/dotnet/SqlClient/pull/1360) |
| 24 | + |
| 25 | +### Changed |
| 26 | + |
| 27 | +- Removed attributes for classes used in Microsoft.VSDesigner due to lack of support for Microsoft.Data.SqlClient [#1296](https://github.com/dotnet/SqlClient/pull/1296) |
| 28 | +- Disable encryption when connecting to SQL LocalDB [#1312](https://github.com/dotnet/SqlClient/pull/1312) |
| 29 | +- Various code health and performance improvements. See [milestone](https://github.com/dotnet/SqlClient/milestone/31?closed=1) for more info. |
| 30 | + |
| 31 | +## New features over preview release v4.0.0-preview2 |
| 32 | + |
| 33 | +### `GetFieldValueAsync<T>` and `GetFieldValue<T>` support for `XmlReader`, `TextReader`, `Stream` types |
| 34 | + |
| 35 | +`XmlReader`, `TextReader`, `Stream` types are now supported when using `GetFieldValueAsync<T>` and `GetFieldValue<T>`. |
| 36 | + |
| 37 | +Example usage: |
| 38 | + |
| 39 | +```cs |
| 40 | +using (SqlConnection connection = new SqlConnection(connectionString)) |
| 41 | +{ |
| 42 | + using (SqlCommand command = new SqlCommand(query, connection)) |
| 43 | + { |
| 44 | + connection.Open(); |
| 45 | + using (SqlDataReader reader = await command.ExecuteReaderAsync()) |
| 46 | + { |
| 47 | + if (await reader.ReadAsync()) |
| 48 | + { |
| 49 | + using (Stream stream = await reader.GetFieldValueAsync<Stream>(1)) |
| 50 | + { |
| 51 | + // Continue to read from stream |
| 52 | + } |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | +} |
| 57 | +``` |
| 58 | + |
| 59 | +## Target Platform Support |
| 60 | + |
| 61 | +- .NET Framework 4.6.1+ (Windows x86, Windows x64) |
| 62 | +- .NET Core 3.1+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) |
| 63 | +- .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) |
| 64 | + |
| 65 | +### Dependencies |
| 66 | + |
| 67 | +#### .NET Framework |
| 68 | + |
| 69 | +- Microsoft.Data.SqlClient.SNI 4.0.0-preview1.21232.1 |
| 70 | +- Azure.Identity 1.3.0 |
| 71 | +- Microsoft.Identity.Client 4.22.0 |
| 72 | +- Microsoft.IdentityModel.JsonWebTokens 6.8.0 |
| 73 | +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0 |
| 74 | +- System.Buffers 4.5.1 |
| 75 | +- System.Configuration.ConfigurationManager 5.0.0 |
| 76 | +- System.IO 4.3.0 |
| 77 | +- System.Runtime.InteropServices.RuntimeInformation 4.3.0 |
| 78 | +- System.Security.Cryptography.Algorithms 4.3.1 |
| 79 | +- System.Security.Cryptography.Primitives 4.3.0 |
| 80 | +- System.Text.Encodings.Web 4.7.2 |
| 81 | + |
| 82 | +#### .NET Core |
| 83 | + |
| 84 | +- Microsoft.Data.SqlClient.SNI.runtime 4.0.0-preview1.21232.1 |
| 85 | +- Azure.Identity 1.3.0 |
| 86 | +- Microsoft.Identity.Client 4.22.0 |
| 87 | +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0 |
| 88 | +- Microsoft.IdentityModel.JsonWebTokens 6.8.0 |
| 89 | +- Microsoft.Win32.Registry 5.0.0 |
| 90 | +- System.Buffers 4.5.1 |
| 91 | +- System.Configuration.ConfigurationManager 5.0.0 |
| 92 | +- System.Diagnostics.DiagnosticSource 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.Security.Cryptography.Cng 5.0.0 |
| 99 | +- System.Security.Principal.Windows 5.0.0 |
| 100 | + |
| 101 | +#### .NET Standard |
| 102 | + |
| 103 | +- Microsoft.Data.SqlClient.SNI.runtime 4.0.0-preview1.21232.1 |
| 104 | +- Azure.Identity 1.3.0 |
| 105 | +- Microsoft.Identity.Client 4.22.0 |
| 106 | +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0 |
| 107 | +- Microsoft.IdentityModel.JsonWebTokens 6.8.0 |
| 108 | +- Microsoft.Win32.Registry 5.0.0 |
| 109 | +- System.Buffers 4.5.1 |
| 110 | +- System.Configuration.ConfigurationManager 5.0.0 |
| 111 | +- System.IO 4.3.0 |
| 112 | +- System.Runtime.Caching 5.0.0 |
| 113 | +- System.Text.Encoding.CodePages 5.0.0 |
| 114 | +- System.Text.Encodings.Web 4.7.2 |
| 115 | +- System.Resources.ResourceManager 4.3.0 |
| 116 | +- System.Runtime.Loader 4.3.0 |
| 117 | +- System.Security.Cryptography.Cng 5.0.0 |
| 118 | +- System.Security.Principal.Windows 5.0.0 |
0 commit comments