public void TransactionalFlush(IsolationLevel isolationLevel) { if (!IsInTransaction) { BeginTransaction(); } try { _transaction.Commit(); } catch (Exception) { _transaction.Rollback(); throw; } }