How Can I check if a dotnet transaction is closed or not ?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Your title asks one thing and your question asks another. so, I am going with your title.
If you want to know if the transaction is rolled back or set to rollback only, you can check
Here,
transaction
is an instance of ITransactionEdit (based on your comment):
Now, you can check the
isRolledBack
flag to see if the transaction is rolled backIf you are on SQL server, you can use
DBCC OPENTRAN
http://msdn.microsoft.com/en-us/library/ms182792.aspx