返回I Enenable<T>与IQueryable<T>
返回有什么区别?IQueryable<T>v.V.IEnumerable<T>?
IQueryable<T>
IEnumerable<T>
IQueryable<Customer> custs = from c in db.Customerswhere c.City == "<City>"select c;IEnumerable<Customer> custs = from c in db.Customerswhere c.City == "<City>"select c;
两者都会被推迟执行,以及何时应该优先于另一个?
相关问题
相关分类