public void Handle(OrderItemAmountUpdated evnt) { _connection.Update( new { Amount = evnt.Amount }, new { OrderId = evnt.OrderId, ProductId = evnt.ProductId }, "eventsourcing_sample_orderitem", _transaction); }
protected virtual void Handle(OrderItemAmountUpdated evnt) { var orderItem = _entityManager.GetSingle<OrderItemEntity>(new { OrderId = evnt.OrderId, ProductId = evnt.ProductId }); _entityManager.UpdateAndSave<OrderItemAmountUpdated>(orderItem, evnt, x => x.Amount); }
protected virtual void Handle(OrderItemAmountUpdated evnt) { var orderItem = _entityManager.GetSingle <OrderItemEntity>(new { OrderId = evnt.OrderId, ProductId = evnt.ProductId }); _entityManager.UpdateAndSave <OrderItemAmountUpdated>(orderItem, evnt, x => x.Amount); }