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

Consider this EF Core code. How many SQL queries reach the database and what filtering occurs server-side?

var names = db.Customers .AsEnumerable() .Where(c => c.Name.StartsWith("A")) .ToList();