The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
dotnet add package Microsoft.Data.SqlClient --version 7.1.0-preview1.26124.5
Install-Package Microsoft.Data.SqlClient -Version 7.1.0-preview1.26124.5
| 包名 | 版本要求 |
|---|---|
| Microsoft.Bcl.Cryptography | [8.0.0, ) |
| Microsoft.Data.SqlClient.Extensions.Abstractions | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.Internal.Logging | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.SNI | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [8.0.1, ) |
| Microsoft.IdentityModel.JsonWebTokens | [8.16.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [8.16.0, ) |
| System.Buffers | [4.6.1, ) |
| System.Data.Common | [4.3.0, ) |
| System.Diagnostics.DiagnosticSource | [10.0.3, ) |
| System.Memory | [4.6.3, ) |
| System.Runtime.InteropServices.RuntimeInformation | [4.3.0, ) |
| System.Security.Cryptography.Pkcs | [8.0.1, ) |
| System.Text.Json | [10.0.3, ) |
| System.Threading.Channels | [10.0.3, ) |
| System.ValueTuple | [4.6.2, ) |
| 包名 | 版本要求 |
|---|---|
| Microsoft.Bcl.Cryptography | [8.0.0, ) |
| Microsoft.Data.SqlClient.Extensions.Abstractions | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.Internal.Logging | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [8.0.1, ) |
| Microsoft.IdentityModel.JsonWebTokens | [8.16.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [8.16.0, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [8.0.1, ) |
| System.Security.Cryptography.Pkcs | [8.0.1, ) |
| System.Text.Json | [10.0.3, ) |
| System.Threading.Channels | [10.0.3, ) |
| 包名 | 版本要求 |
|---|---|
| Microsoft.Bcl.Cryptography | [8.0.0, ) |
| Microsoft.Data.SqlClient.Extensions.Abstractions | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.Internal.Logging | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [8.0.1, ) |
| Microsoft.IdentityModel.JsonWebTokens | [8.16.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [8.16.0, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [8.0.1, ) |
| System.Security.Cryptography.Pkcs | [8.0.1, ) |
| 包名 | 版本要求 |
|---|---|
| Microsoft.Bcl.Cryptography | [9.0.13, ) |
| Microsoft.Data.SqlClient.Extensions.Abstractions | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.Internal.Logging | [1.0.0-preview1.26124.5, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [9.0.13, ) |
| Microsoft.IdentityModel.JsonWebTokens | [8.16.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [8.16.0, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [9.0.13, ) |
| System.Security.Cryptography.Pkcs | [9.0.13, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2026-05-05 01:30:27 |
| 项目主页 | https://aka.ms/sqlclientproject |
| 许可证 | https://www.nuget.org/packages/Microsoft.Data.SqlClient/7.1.0-preview1.26124.5/license |