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