Releases the unmanaged resources used by the NpgsqlTransaction and optionally releases the managed resources.
IDisposable.Dispose
NpgsqlTransaction Class | Npgsql Namespace