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...
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...