Beispiel #1
0
 public List <Employee> EntityList()
 {
     using (RevertContext context = new RevertContext())
     {
         return(context.Employees.ToList());
     }
 }
Beispiel #2
0
 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());
     }
 }