CQRSSample.App.Program.ShowCustomerListView C# (CSharp) Method

ShowCustomerListView() private static method

private static ShowCustomerListView ( IDocumentStore store ) : void
store IDocumentStore
return void
        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("---");
                }
            }
        }