У меня есть этот код:
EmployeeEntities storeDB = new EmployeeEntities();
public ActionResult Index()
{
var employee = storeDB.Employees.ToList() //ToList is not showing up!
return View(employee);
}
и мой класс EmployeeEntities выглядит так:
public class EmployeeEntities : DbContext
{
public DbSet<Employee> Employees { get; set; }
}
Почему я не вижу ToList () в моем индексе ActionResult () ???