Ejemplo n.º 1
0
        private TimeSpan UseIndex()
        {
            var indexed = _orders.AsIndexQueryable()
                          .AddIndexer(o => o.CustomerID);
            var stopWatch = Stopwatch.StartNew();
            var result1   = (from o in indexed
                             where o.CustomerID == "GAU1"
                             select o.OrderNumber).ToList();

            return(stopWatch.Elapsed);
        }