public virtual void TestDistinctTake() { // top must be forced to apply after distinct has been computed var list = db.Orders.OrderBy(o => o.CustomerID).Select(o => o.CustomerID).Distinct().Take(5).ToList(); AssertValue(5, list.Count); }