There are many topics on stackoverflow: When should I use IEnumerable and when IQueryable? What is the difference between IQueryable<T> and IEnumerable<T>? When should I use IEnumerable and when IQueryable? What s the difference between IQueryable and IEnumerable
各地的人都写道,在服务器方面,从记忆中可识别的过滤数据。 www.un.org/Depts/DGACM/index_french.htm
如果我们分裂一个问题!
因此:
IEnumerable<Customer> customers = context.Customers.Where(c => c.FirstName.StartsWith("J")).Take(5).ToList();
它对过滤层(5)进行了正确查询:
select top(5) * from Customers WHERE FirstName like j% ;
但:
IEnumerable<Customer> customers = context.Customers.Where(c => c.FirstName.StartsWith("J"));
var result = customers.Take(5).ToList(); //the filter is in a different line of code
它提供了一个没有上层的询问:
select * from Customers WHERE FirstName like j% ;
因此,人们为什么在服务器方面写到,从记忆中可以识别的电子计算机过滤数据?