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