System.Data.Common.DbTransaction (or one of its derived classes) allows to commit or roll back a pending transaction. BeginTrasaction() on an object that derives from System.Data.Common.DbConnection. DbTransaction are Commit() and Rollback().