Beispiel #1
0
 public List<EmployeeSkill> Entity_List()
 {
     using (RevertContext context = new RevertContext())
     {
         return context.EmployeeSkills.ToList();
     }
 }
Beispiel #2
0
 public List<Employee> QueryNav_List()
 {
     using (RevertContext context = new RevertContext())
     {
         var results = from eachEmpSkillrow in context.EmployeeSkills
                       where eachEmpSkillrow.SkillID == 8
                       select eachEmpSkillrow.Employee;
         return results.ToList();
     }
 }
 public List<Employee> QueryNav_List()
 {
     using (RevertContext context = new RevertContext())
     {
         var results = from item in context.EmployeeSkills
                       where item.SkillID == 8
                       select item.Employee;
         return results.ToList();
     }
 }