DbTransaction::Dispose Method
.NET Framework (current version)
Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources.
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases the unmanaged resources used by the DbTransaction. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources. |
Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.
Show:

