Picture this. You have an entity called company which has a list of Employees. Your given a collection of Companies and you need to get all the employees in the collection. here’s a one line way of doing it.
var companies= context.Comapny.Select(item => item); // Now you have a list of companies
var allEmployeList=companies.SelectMany(company => company.Employes);