retrieve and pass data from EF table

  • Thread starter Thread starter zleug
  • Start date Start date
Z

zleug

Guest
Hi All.

I would like to create method to retrieve whole data from EF table


public static List<string> GetEmployee()
{
using (Model1 context = new Model1())
{
List<string> employee = context.Employee.Select(a => a).ToList();

return employee;
}
}


But line with Select display error. What is wrong? How to fix it?

Thanks.

Continue reading...
 
Back
Top