public void Commit() { try { _session.Flush(); _session.Transaction.Commit(); } catch (StaleObjectStateException ex) { throw new ConcurrencyException(ConcurrencyException.DefaultConcurrencyExceptionMessage, ex); } }