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

SqlCommand

public sealed class SqlCommand : DbCommand
Represents a Transact-SQL statement or stored procedure to execute against a SQL Server database. This class cannot be inherited.
using System.Data.Common; using System.Threading; using System.Threading.Tasks; using System.Xml; namespace System.Data.SqlClient { public sealed class SqlCommand : DbCommand { public override string CommandText { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public override int CommandTimeout { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public override CommandType CommandType { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public new SqlConnection Connection { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } protected override DbConnection DbConnection { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } protected override DbParameterCollection DbParameterCollection { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } protected override DbTransaction DbTransaction { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public override bool DesignTimeVisible { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public new SqlParameterCollection Parameters { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public new SqlTransaction Transaction { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public override UpdateRowSource UpdatedRowSource { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public event StatementCompletedEventHandler StatementCompleted { add { } remove { } } public SqlCommand() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public SqlCommand(string cmdText) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public SqlCommand(string cmdText, SqlConnection connection) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public SqlCommand(string cmdText, SqlConnection connection, SqlTransaction transaction) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override void Cancel() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } protected override DbParameter CreateDbParameter() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new SqlParameter CreateParameter() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } protected override void Dispose(bool disposing) { } protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } protected override Task<DbDataReader> ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override int ExecuteNonQuery() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new SqlDataReader ExecuteReader() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new SqlDataReader ExecuteReader(CommandBehavior behavior) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new Task<SqlDataReader> ExecuteReaderAsync() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new Task<SqlDataReader> ExecuteReaderAsync(CommandBehavior behavior) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new Task<SqlDataReader> ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public new Task<SqlDataReader> ExecuteReaderAsync(CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override object ExecuteScalar() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override Task<object> ExecuteScalarAsync(CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public XmlReader ExecuteXmlReader() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task<XmlReader> ExecuteXmlReaderAsync() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public Task<XmlReader> ExecuteXmlReaderAsync(CancellationToken cancellationToken) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } public override void Prepare() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }