连接关闭时,是否可以在c#中检索当前的SQL事务?
sqlTransaction.Save("savePoint");
sqlConnection.Close() // im purposely closing it to test
if (sqlConnection.State == ConnectionState.Close)
{
sqlConnection.Open():
// is it possible to resume the sql transaction when I re-open
// the sql connection? how?
}
Run Code Online (Sandbox Code Playgroud)