<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview4.26064.3" />

Microsoft.Data.SqlClient.SqlTransaction

public sealed class SqlTransaction : DbTransaction
Represents a Transact-SQL transaction to be made in a SQL Server database. This class cannot be inherited.
public SqlConnection Connection { get; }

Gets the SqlConnection object associated with the transaction, or null if the transaction is no longer valid.

public void Rollback(string transactionName)

Rolls back a transaction from a pending state.

public void Save(string savePointName)

Creates a savepoint in the transaction that can be used to roll back a part of the transaction, and specifies the savepoint name.