14
返回IEnumerable <T>与IQueryable <T>
Return IQueryable<T>与vs 之间的区别是什么IEnumerable<T>,何时应该优先选择另一个? IQueryable<Customer> custs = from c in db.Customers where c.City == "<City>" select c; IEnumerable<Customer> custs = from c in db.Customers where c.City == "<City>" select c;