This SqlTransaction has completed; it is no longer usable.at System.Data.SqlClient.SqlTransaction.ZombieCheck()
at System.Data.SqlClient.SqlTransaction.Commit
下面的代码使用SqlTransaction。我叫了dispose in catch,最后阻止了..但是,在调用Dispose()之前,我还没有检查它是否已经被释放。如何在调用Dispose()之前检查SqlTransaction是否已被释放?注意:我已经知道TransactionScope比SqlTransaction具有优势。但我想了解SqlTransaction的处置。connection = new SqlConnection(connectionString))