欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

IQueryable vs. IEnumerable

程序员文章站 2024-01-23 15:47:28
IQueryable extends the IEnumerable interface IEnumerable is great for working with sequences that are iterated in-memory, but IQueryable allows for ou... ......
  1. iqueryable<t> extends the ienumerable<t> interface
  2. ienumerable<t> is great for working with sequences that are iterated in-memory, but
  3. iqueryable<t> allows for out-of-memory things like a remote data source, such as a database or web service
  4. ienumerable<t>: loads all data into memory then filter. iqueryable<t>: filter data then loads the data into memory
  5. links: 

 IQueryable vs. IEnumerable

 

IQueryable vs. IEnumerable