var dbContext = new MyDbContext(); // Replace with your DbContext
var data = dbContext.MyEntities; // Represents the data source
var query = from item in data
where item.Price > 50
select item; // Defines a query
var result = query.ToList(); // Executes the query and retrieves data
var deferredQuery = data.Where(item => item.Quantity > 10); // Query is not executed here
foreach (var item in deferredQuery) { } // Query is executed when enumerating
var immediateQuery = data.Where(item => item.Category == "Electronics").ToList(); // Executes and retrieves data immediately