예제 #1
0
        public void Commit()
        {
            var transaction = new DatabaseTransaction();

            transaction.Actions.AddRange(_sessionDataStore.GetActions());
            if (transaction.Actions.Any())
            {
                _log.LogAndApplyTransaction(transaction);
            }
            _sessionDataStore = new SessionDataStore(() => _log.Value);
        }
예제 #2
0
 public DbSession(TransactionLog <DataStore> log)
 {
     _log = log;
     _sessionDataStore = new SessionDataStore(() => _log.Value);
 }