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

SqlClientFactory

public sealed class SqlClientFactory : DbProviderFactory
Represents a set of methods for creating instances of the SqlClient provider's implementation of the data source classes.
using System.Data.Common; namespace System.Data.SqlClient { 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 DbConnection CreateConnection() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbConnectionStringBuilder CreateConnectionStringBuilder() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override DbParameter CreateParameter() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }