private void Handle(AccountBalanceUpdated evnt) { _connection.Update( new { Balance = evnt.Balance }, new { Id = evnt.BankAccountId }, "EventSourcing_Sample_BankAccount", _transaction); }
protected virtual void Handle(AccountBalanceUpdated evnt) { var bankAccount = _entityManager.GetById <BankAccountEntity>(evnt.BankAccountId); _entityManager.UpdateAndSave <AccountBalanceUpdated>(bankAccount, evnt, x => x.Balance); }
protected virtual void Handle(AccountBalanceUpdated evnt) { var bankAccount = _entityManager.GetById<BankAccountEntity>(evnt.BankAccountId); _entityManager.UpdateAndSave<AccountBalanceUpdated>(bankAccount, evnt, x => x.Balance); }