private static void SimpleQuery() { var service = new DapperServices(); var customers = service.GetCustomers(); foreach (var customer in customers) { ObjectDumper.Write(customer); } }
private static void PagedQuery() { var service = new DapperServices(); int totalRecords; var customers = service.GetCustomers(2, out totalRecords); foreach (var customer in customers) { ObjectDumper.Write(customer); } ObjectDumper.Write(string.Format("There are {0} records matching the criteria", totalRecords)); }