示例#1
0
        public static void SearchByCustomerName()
        {
            Console.WriteLine("请输入要查询的客户名称:");
            string       customerName = Console.ReadLine();
            List <Order> orders       = service.QueryOrderByCustomer(customerName);

            if (orders.Count == 0)
            {
                Console.WriteLine("查询不到任何订单!");
                return;
            }
            PrintResultType(orders);
        }