<PackageReference Include="System.Data.SqlClient" Version="4.9.0" />

SqlClientFactory

public sealed class SqlClientFactory : DbProviderFactory
using System.Data.Common; namespace System.Data.SqlClient { [Obsolete("Use the Microsoft.Data.SqlClient package instead.")] public sealed class SqlClientFactory : DbProviderFactory { public static readonly SqlClientFactory Instance; internal SqlClientFactory() { } public override DbCommand CreateCommand() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbCommandBuilder CreateCommandBuilder() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbConnection CreateConnection() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbConnectionStringBuilder CreateConnectionStringBuilder() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbDataAdapter CreateDataAdapter() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbParameter CreateParameter() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }