예제 #1
0
 private void Handle(OrderItemAdded evnt)
 {
     _items.Add(new OrderItem(evnt.OrderId, evnt.ProductId, evnt.Price, evnt.Amount));
 }
예제 #2
0
 public void Handle(OrderItemAdded evnt)
 {
     _connection.Insert(evnt, "eventsourcing_sample_orderitem", _transaction);
 }