Skip to content

Commit 244a340

Browse files
authored
Release notes - 5.2.0-preview2 (#2056)
1 parent 153c36d commit 244a340

File tree

5 files changed

+143
-0
lines changed

5 files changed

+143
-0
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ 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 5.2.0-preview2.23159.1] - 2023-06-08
8+
9+
This update brings the below changes over the previous release:
10+
11+
### Added
12+
13+
- Added new property `RowsCopied64` to `SqlBulkCopy`. [#2004](https://github.com/dotnet/SqlClient/pull/2004)
14+
15+
### Fixed
16+
17+
- Fixed socket synchronization issue during connect in managed SNI. [#1029](https://github.com/dotnet/SqlClient/pull/1029)
18+
- Fixed issue with `SqlConnectionStringBuilder` property indexer not supporting non-string values. [#2018](https://github.com/dotnet/SqlClient/pull/2018)
19+
20+
### Changed
21+
22+
- Moved to new System.Data.SqlTypes APIs in **.NET 7** and upper. [1934](https://github.com/dotnet/SqlClient/pull/1934) and [#1981](https://github.com/dotnet/SqlClient/pull/1981)
23+
- Changed **[UseOneSecFloorInTimeoutCalculationDuringLogin](https://learn.microsoft.com/sql/connect/ado-net/appcontext-switches#enable-a-minimum-timeout-during-login)** App Context switch default to **true** and extended its effect to .NET and .NET Standard. [#2012](https://github.com/dotnet/SqlClient/pull/2012)
24+
- Updated `Microsoft.Identity.Client` version from 4.47.2 to 4.53.0. [#2031](https://github.com/dotnet/SqlClient/pull/2031), [#2055](https://github.com/dotnet/SqlClient/pull/2055)
25+
- Code health improvement: [#1985](https://github.com/dotnet/SqlClient/pull/1985)
26+
727
## [Preview Release 5.2.0-preview1.23109.1] - 2023-04-20
828

929
This update brings the below changes over the previous release:
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Release Notes
2+
3+
## [Preview Release 5.2.0-preview2.23159.1] - 2023-06-08
4+
5+
This update brings the below changes over the previous release:
6+
7+
### Added
8+
9+
- Added new property `RowsCopied64` to `SqlBulkCopy`. [#2004](https://github.com/dotnet/SqlClient/pull/2004) [Read more](#added-new-property-rowscopied64-to-sqlbulkcopy)
10+
11+
### Fixed
12+
13+
- Fixed socket synchronization issue during connect in managed SNI. [#1029](https://github.com/dotnet/SqlClient/pull/1029)
14+
- Fixed issue with `SqlConnectionStringBuilder` property indexer not supporting non-string values. [#2018](https://github.com/dotnet/SqlClient/pull/2018)
15+
16+
### Changed
17+
18+
- Moved to new System.Data.SqlTypes APIs in **.NET 7** and upper. [1934](https://github.com/dotnet/SqlClient/pull/1934) and [#1981](https://github.com/dotnet/SqlClient/pull/1981)
19+
- Changed **[UseOneSecFloorInTimeoutCalculationDuringLogin](https://learn.microsoft.com/sql/connect/ado-net/appcontext-switches#enable-a-minimum-timeout-during-login)** App Context switch default to **true** and extended its effect to .NET and .NET Standard. [#2012](https://github.com/dotnet/SqlClient/pull/2012)
20+
- Updated `Microsoft.Identity.Client` version from 4.47.2 to 4.53.0. [#2031](https://github.com/dotnet/SqlClient/pull/2031), [#2055](https://github.com/dotnet/SqlClient/pull/2055)
21+
- Code health improvement: [#1985](https://github.com/dotnet/SqlClient/pull/1985)
22+
23+
## New features over preview release v5.2.0-preview1
24+
25+
### Added new property `RowsCopied64` to SqlBulkCopy
26+
27+
SqlBulkCopy has a new property `RowsCopied64` which supports `long` value types.
28+
29+
**Note that the existing `SqlBulkCopy.RowsCopied` behavior is unchanged. When the value exceeds `int.MaxValue`, `RowsCopied` can return a negative number.**
30+
31+
Example usage:
32+
33+
```C#
34+
using (SqlConnection srcConn = new SqlConnection(srcConstr))
35+
using (SqlCommand srcCmd = new SqlCommand("select top 5 * from employees", srcConn))
36+
{
37+
srcConn.Open();
38+
using (DbDataReader reader = srcCmd.ExecuteReader())
39+
{
40+
using (SqlBulkCopy bulkcopy = new SqlBulkCopy(dstConn))
41+
{
42+
bulkcopy.DestinationTableName = dstTable;
43+
SqlBulkCopyColumnMappingCollection ColumnMappings = bulkcopy.ColumnMappings;
44+
45+
ColumnMappings.Add("EmployeeID", "col1");
46+
ColumnMappings.Add("LastName", "col2");
47+
ColumnMappings.Add("FirstName", "col3");
48+
49+
bulkcopy.WriteToServer(reader);
50+
long rowsCopied = bulkcopy.RowsCopied64;
51+
}
52+
}
53+
}
54+
```
55+
56+
## Target Platform Support
57+
58+
- .NET Framework 4.6.2+ (Windows x86, Windows x64)
59+
- .NET 6.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS)
60+
- .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS)
61+
62+
### Dependencies
63+
64+
#### .NET Framework
65+
66+
- Microsoft.Data.SqlClient.SNI 5.1.0
67+
- Azure.Identity 1.8.0
68+
- Microsoft.Identity.Client 4.53.0
69+
- Microsoft.IdentityModel.JsonWebTokens 6.24.0
70+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.24.0
71+
- System.Buffers 4.5.1
72+
- System.Configuration.ConfigurationManager 6.0.1
73+
- System.IO 4.3.0
74+
- System.Runtime.InteropServices.RuntimeInformation 4.3.0
75+
- System.Security.Cryptography.Algorithms 4.3.1
76+
- System.Security.Cryptography.Primitives 4.3.0
77+
- System.Text.Encoding.Web 6.0.0
78+
79+
#### .NET
80+
81+
- Microsoft.Data.SqlClient.SNI 5.1.0
82+
- Azure.Identity 1.8.0
83+
- Microsoft.Identity.Client 4.53.0
84+
- Microsoft.IdentityModel.JsonWebTokens 6.24.0
85+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.24.0
86+
- Microsoft.SqlServer.Server 1.0.0
87+
- System.Buffers 4.5.1
88+
- System.Configuration.ConfigurationManager 6.0.1
89+
- System.Diagnostics.DiagnosticSource 6.0.0
90+
- System.IO 4.3.0
91+
- System.Runtime.Caching 6.0.0
92+
- System.Text.Encoding.CodePages 6.0.0
93+
- System.Text.Encodings.Web 6.0.0
94+
- System.Resources.ResourceManager 4.3.0
95+
- System.Security.Cryptography.Cng 5.0.0
96+
- System.Security.Principal.Windows 5.0.0
97+
98+
#### .NET Standard
99+
100+
- Microsoft.Data.SqlClient.SNI 5.1.0
101+
- Azure.Identity 1.6.0
102+
- Microsoft.Identity.Client 4.53.0
103+
- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.24.0
104+
- Microsoft.IdentityModel.JsonWebTokens 6.24.0
105+
- Microsoft.SqlServer.Server 1.0.0
106+
- Microsoft.Win32.Registry 5.0.0
107+
- System.Buffers 4.5.1
108+
- System.Configuration.ConfigurationManager 6.0.1
109+
- System.IO 4.3.0
110+
- System.Runtime.Caching 6.0.0
111+
- System.Text.Encoding.CodePages 6.0.0
112+
- System.Text.Encodings.Web 6.0.0
113+
- System.Runtime.Loader 4.3.0
114+
- System.Resources.ResourceManager 4.3.0
115+
- System.Security.Cryptography.Cng 5.0.0
116+
- System.Security.Principal.Windows 5.0.0

release-notes/5.2/5.2.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
| Release Date | Version | Notes |
22
| :-- | :-- | :--: |
3+
| 2023/06/08 | 5.2.0-preview2.23159.1 | [relese notes](5.2.0-preview2.md) |
34
| 2023/04/20 | 5.2.0-preview1.23109.1 | [release notes](5.2.0-preview1.md) |

release-notes/5.2/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Microsoft.Data.SqlClient 5.2 Releases
2+
3+
The following Microsoft.Data.SqlClient 5.2 preview releases have been shipped:
4+
15
| Release Date | Version | Notes |
26
| :-- | :-- | :--: |
7+
| 2023/06/08 | 5.2.0-preview2.23159.1 | [release notes](5.2.0-preview2.md) |
38
| 2023/04/20 | 5.2.0-preview1.23109.1 | [release notes](5.2.0-preview1.md) |

release-notes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The latest stable release is [Microsoft.Data.SqlClient 5.1](5.1).
44

55
## Release Information
66

7+
- [Microsoft.Data.SqlClient 5.2](5.2)
78
- [Microsoft.Data.SqlClient 5.1](5.1)
89
- [Microsoft.Data.SqlClient 5.0](5.0)
910
- [Microsoft.Data.SqlClient 4.1](4.1)

0 commit comments

Comments
 (0)