我有这一法典:
EmployeeEntities storeDB = new EmployeeEntities();
public ActionResult Index()
{
var employee = storeDB.Employees.ToList() //ToList is not showing up!
return View(employee);
}
和我的员工班子一样:
public class EmployeeEntities : DbContext
{
public DbSet<Employee> Employees { get; set; }
}
我为什么不能将ToList()列入我的行动恢复指数?