コード例 #1
0
        static void Main(string[] args)
        {
            Search = new OrderSearchFilter <Order>(CreateSampleData());

            //create search
            DateTime from = new DateTime(2015, 1, 1);

            //Search.TxNumber = 2;
            Search.TransactionDateFrom   = from;
            Search.MaxBigTicketItemPrice = 1000m;
            Search.SortDir   = "Desc";
            Search.SortField = "TxNumber";
            //Search.CustomerName = "Jill";

            //Run search
            Console.WriteLine("Running search...");
            Search.GetResults();
            Console.WriteLine("Result transaction numbers:");
            foreach (var o in Search.Results)
            {
                Console.WriteLine(o.TxNumber);
            }
            Console.ReadKey();
        }