- Added support for .NET 6.0. #1704
- Added support for
DateOnly
andTimeOnly
forSqlParameter
value andGetFieldValue
. #1813 - Added support for TLS 1.3 on .NET Core and native SNI. #1821
- Added
ServerCertificate
setting forEncrypt=Mandatory
orEncrypt=Strict
. #1822 Read more - Added Windows ARM64 support when targeting .NET Framework. #1828
This package helps set up SqlClient in applications using dependency injection, notably ASP.NET and Worker Service applications. It allows easy configuration of your database connections and registers the appropriate services in your DI container. It also enables you to log events from Microsoft.Data.SqlClient using standard .NET logging (ILogger).
The .NET 6 solution to this is the new DbBatch class. The goals in the Batching API proposal are;
- Provide a structured way to execute multiple SQL statements in a single roundtrip, without any need for client-side parsing of SQL.
Fixed
- Fixed Kerberos authentication failure when using .NET 6. #1411
- Fixed connection failure when using
SqlLocalDB
instance pipe name. #1433 - Fixed a failure when executing concurrent queries requiring enclaves. #1451
- Updated obsolete API calls targeting .NET 6. #1401
Changed
- Added AppContext switch
SuppressInsecureTLSWarning
to allow suppression of TLS security warning when usingEncrypt=false
in the connection string. #1457
از Microsoft.Data.SqlClient 4 به بعد، حالت اتصال امن، پیشفرض شدهاست و اگر برنامه و سرور شما از این حالت پشتیبانی نمیکنند، از کار خواهند افتاد. برای بازگشت به حالت قبل، Encrypt=False را به رشتهی اتصالی خود اضافه کنید:
server=.;database=LicenseManager;integrated security=True;Encrypt=False"