public List<Employee> Entity_List() { using(Revert_Context context = new Revert_Context()) { return context.Employees.ToList(); } }
public List<Employee> QueryNav_List() { using (Revert_Context context = new Revert_Context()) { var results = from eachEmpSkillRow in context.EmployeeSkills where eachEmpSkillRow.SkillID == 8 select eachEmpSkillRow.Employee; return results.ToList(); } }