public void Commit() { var transaction = new DatabaseTransaction(); transaction.Actions.AddRange(_sessionDataStore.GetActions()); if (transaction.Actions.Any()) { _log.LogAndApplyTransaction(transaction); } _sessionDataStore = new SessionDataStore(() => _log.Value); }
public DbSession(TransactionLog <DataStore> log) { _log = log; _sessionDataStore = new SessionDataStore(() => _log.Value); }