Beispiel #1
0
        static void WriteAllCustomersViaRepo()
        {
            using (var repo = new CustomersRepository())
            {
                var rdr = repo.ReadCustomers();

                while (rdr.Read())
                {
                }
            }
        }
Beispiel #2
0
        static DataTable GetAllCustomersViaRepo()
        {
            var repo = new CustomersRepository();

            return(repo.GetCustomers());
        }