public void close(bool ok) { if (cnn_ != null) { if (ok) { cnn_.Commit(); } else { cnn_.Rollback(); } cnn_.Dispose(); } }