public List<Employee> GetEmployees(){
var employee = new ApplicationDBContext().Employee;
return employee.ToList();
}
//somewhere in other part of code.
//Use GetEmployees.
var employees = GetEmployees();
var importantEmployees = employees.Where(e => e.IsImportant == true);
С точки зрения производительности, этот метод возможен? Есть ли решение, чтобы сделать его быстро? Спасибо!Entity framework. ToList() медленный? (Запрос все)
Спасибо за это, это помогает! – janmvtrinidad