public void Handle(OrderItemAmountUpdated evnt) { _connection.Update( new { Amount = evnt.Amount }, new { OrderId = evnt.OrderId, ProductId = evnt.ProductId }, "eventsourcing_sample_orderitem", _transaction); }
private void Handle(OrderItemAmountUpdated evnt) { _items.Single(x => x.ProductId == evnt.ProductId).SetAmount(evnt.Amount); }