Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#IEnumerable vs IQueryableSingle-choice MCQ

Both queries below target the same EF Core DbSet<Order>. What is the key behavioral difference?

var a = db.Orders.Where(o => o.Total > 100).ToList(); // IQueryable var b = db.Orders.AsEnumerable().Where(o => o.Total > 100).ToList(); // IEnumerable