<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.1" />

Microsoft.Data.SqlClient.SqlBatchCommand

public class SqlBatchCommand
SqlBatchCommand allows for the execution of multiple SQL commands in a SqlBatch.

Not currently implemented. The encryption setting. For more information, see Always Encrypted.

public CommandBehavior CommandBehavior { get; set; }

One of the CommandBehavior values, indicating options for statement execution and data retrieval.

public string CommandText { get; set; }

Gets or sets the text command to run against the data source.

public CommandType CommandType { get; set; }

Gets or sets how the CommandText property is interpreted.

Gets the collection of SqlParameter objects.

Gets the SqlParameterCollection.

public int RecordsAffected { get; }

Gets the number of rows changed, inserted, or deleted by execution of this specific SqlBatchCommand.

public SqlBatchCommand()

Initializes a new SqlBatchCommand.

public SqlBatchCommand(string commandText, CommandType commandType = 1, IEnumerable<SqlParameter> parameters = null, SqlCommandColumnEncryptionSetting columnEncryptionSetting = 0)

Initializes a new SqlBatchCommand.