Exemple #1
0
 private void Handle(BookCountUpdated evnt)
 {
     _connection.Update(
         new { Count = evnt.Count },
         new { LibraryId = evnt.LibraryId, BookId = evnt.BookId },
         "EventSourcing_Sample_BookStoreItem", _transaction);
 }
Exemple #2
0
 private void Handle(BookCountUpdated evnt)
 {
     _bookStoreItems.Single(x => x.BookId == evnt.BookId).SetCount(evnt.Count);
 }