private static void ShowCustomerListView(IDocumentStore store)
{
using (var session = store.OpenSession())
{
foreach(var dto in session.Query<CustomerListDto>())
{
Console.WriteLine(dto.Name + " now living in " + dto.City + " (" + dto.AggregateRootId + ")");
Console.WriteLine("---");
}
}
}