private void Persist(BankAccountView view, CustomerFullNameUpdated @event) { view.Customer.FullName = @event.FullName; }
// one customer might have more than one account static List <Guid> SelectCustomerBankAccountIds(IDocumentSession ds, CustomerFullNameUpdated @event) => ds.Query <BankAccountView>() .Where(a => a.Customer.Id == @event.CustomerId) .Select(a => a.Id) .ToList();