Пример #1
0
        public static void Main()
        {
            var numbersQuery = new NumbersQueryable().Where(number => number.Value < 5);

            Console.WriteLine("QUERY  : {0}", numbersQuery.Expression);

            var numbersResults = numbersQuery.ToArray();

            Console.WriteLine("RESULTS: {0}", numbersResults.ToJson());

            Console.WriteLine();

            Console.Write("Press any key ... ");
            Console.ReadKey(true);
            Console.WriteLine();
        }
Пример #2
0
 public NumbersQueryProvider(NumbersQueryable queryable)
 => _queryable = queryable;